ReportViewer Cause error after deploying the webserver

Dear all,

When I deploy my web project into my Web server,everything is work,but except the report does not work properly.

The config of my webserver is win2003 with IIS 6.0.And I make use of the report in the local processing mode and set "sessions state mode=InProc","cookieless mode=UseCookie"on the page of the state management in IIS.

The error message is showed below

Server Error in '/' Application.

ASP.NET session has expired

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[AspNetSessionExpiredException: ASP.NET session has expired] Microsoft.Reporting.WebForms.ReportDataOperation..ctor() +683 Microsoft.Reporting.WebForms.HttpHandler.GetHandler() +553 Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +10 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

Can anyone help me ?
[1925 byte] By [JohnYG] at [2008-1-1]
# 1
There is a known bug with the report viewer and cookie based sessions. If you use a cookieless session, the report should render correctly.
BrianHartman-MSFT at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 2

Dear Brian:

It is still giving the same error, even if I set the cookieless mode to true or false. I am using custom database on SQL 2000 to set the session state. Can you please advice. If there is a bug do we have patch.

Regards

Gaurav

GauravRajput at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 3

I apologize, I had things backwards in my original post. Our known issue is with cookieless session. Cookie sessions (which you had set originally and is the default) should be fine.

Are you receiving the error immediately or do you need to let the browser sit idle for a while? Have you confirmed that your browser has cookies enabled? Which browser are you using?

BrianHartman-MSFT at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 4

After I add "ReportViewer1.localReport.Refresh()" in the PageLoad() method in the page that contain Report Viewer .Then it works properly ,but I don't know why it work.The brower that I used is IE and it is support cookies.

Now I have another problem that I need to deploy my source code,otherwise the report viewer doesn't work properly.I have tried to deploy the source code for report only ,it works but the export function cause error.Can anyone help me?

JohnYG at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 5

I also add "<sessionstate stateConnectionString="tcpip=127.0.0.1:8001"/>" into the web.config file

But I don't know why it works.

JohnYG at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 6

I I am having the same issue, but mine only occurs once when the application starts. If I press Refresh it works fine. I've set cookieless="false" and I've set cookieless="true" with the same results.

I do want to ask Microsoft when we can see a fix to this problem? I would also guess that additional bugs to VS 2005 also needs to occur. Even though VS 2005 is an absolutely terrific product, I think it's completely arrogant on Microsoft's part not to deploy an SP release on VS 2005.

fdgrau at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 7

We are investigating this issue and I will report back as soon as I have more information.

For information on the Visual Studio 2005 Service Pack, please look here: http://msdn.microsoft.com/vstudio/support/servicing

BrianHartman-MSFT at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 8
Thanks for the "ReportViewer1.localReport.Refresh() tip. I also had a problem with deploying my app. I had to copy the Microsoft.ReportViewer.Common.dll, Microsoft.ReportViewer.ProcessingObjectModel.dll and Microsoft.ReportViewer.WebForms.dll manually to the bin folder. Once I did that the reports worked fine, with the exception of the occassional Session Timeout error.
DRN at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 9

Hi, I am getting the same "ASP.NET session has expired" error in the report viewer control.

1. The error page doesn't appear immediately.

2. I am running sql server 2000 and VS2005

3. Tried without success:

a) Refresh on page load,

b) <sessionstate stateConnectionString="tcpip=127.0.0.1:8001"/> ,

c) cookieless="false"

4. Can't see a bin folder in my app folder?

The app works fine from the developer's machine.

Any suggestion will be highly appreciated!!

dmc7198 at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 10

If you cannot work with it, you can copy your whole project with source code to the webserver.(it means that your source code will be seen by other)

It may be work!

I hope it can help you......

JohnYG at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 11

I too have been struggling with this session expiration message. My work-around has been to set the session timeout to 1440 min (1 day). This seems to work, most of the time. I would love to hear the MS solution to this...

I have also been unable to solve the 'Execution 'sessionID' not found.' message that appears in the ReportViewer in my web app. I have not been able to pinpoint exactly why this error occurs, but it seems to show up in the ReportViewer every so often. If I choose and render another report, it works just fine. If anyone has any suggestions about this one, let me know please.

thanks,

Michael R.

MichaelR at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 12
I am also getting the same timeout behavior. This is very upsetting. MSFT, please fix this soon.
dotnet4me2 at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 13
We are running into this same issue with a client I am working with. The ReportViewer control works fine until we set cookless to true. Is there a timeframe in which this issue is expected to be addressed?
The only workaround I found so far was to set AsyncRendering to False. The trouble I ran into with doing this was that all of the images in the reports then would no longer appear.
Jason
JasonStrate at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...
# 14

I was using the machine name when accessing the application. My machine name includes an underscore: abc_1234 and that was creating the problem.

I tried using the ip address and it works just fine.

Hope this helps you as well.

dmc7198 at 2007-9-12 > top of Msdn Tech,Visual Studio,Visual Studio Report Controls...

Visual Studio

Site Classified