We are experiencing random "ASP.NET Session has expired" errors when viewing
reports (see exception message and stack trace below). The sessions in
question are not our application sessions (this is proved by the stack
trace).
Some relevant info
* We use the ReportViewer control in remote processing mode.
* The ReportViewer control is not inside an IFRAME.
* The ReportServer app pool is setup to use one worker process.
* The error occurs seemingly randomly: sometimes on first view, sometimes
during paging, and sometimes not at all.
* On the server we invoke the report using code like:
--- viewer.ServerReport.ReportPath = "/Reports/ReportName";
--- viewer.ServerReport.SetParameters(parmList);
--- viewer.ServerReport.Refresh();
* We have not enabled cookieless sessions anywhere.
* Our application uses SSL
Environment
* Windows Server 2003 Standard
* SQL Server 2005 SP2
* Intel Core 2 6600 @ 2.4GHz
* 2GB RAM
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
Stack Trace:
[AspNetSessionExpiredException: ASP.NET session has expired]
Microsoft.Reporting.WebForms.ReportDataOperation..ctor() +679
Microsoft.Reporting.WebForms.HttpHandler.GetHandler() +561
Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext
context) +10
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64
Thanks in advance
Stu
This may be a known issue in the VS 2005 RTM version for the ReportViewer
control. This issue has been fixed in the VS 2005 SP1. Could you please try
to apply the VS 2005 SP1?
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=bb4a
75ab-e2d4-4c96-b39d-37baf6b5b1dc
Hope this helps.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Thanks for the update.
1. The issue can be caused by app domain recycle. KB:
http://support.microsoft.com/kb/911816/en-us
Note: we can temoprarily remove all the app pool recycle related settings.
2. We can also start with the following four points:
1) If the issue only occurred after deployment and it is working fine in
development machine, you can copy your whole project with source code to
the
webserver.(it means that your source code will be seen by other). Just a
workround.
2) Check if cookie is enabled and AsyncRendering is disabled.
3) If IE referenshing can fix the issue, try
ReportViewer1.LocalReport.Refresh()
4) If the image can't display, apply this:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;921405. If it
doesn't work,
suggest to use reportviewer iframe.
Reference:
http://forums.microsoft.com/msdn/showpost.aspx?postid=371287&siteid=1&sb=0&d
=1&at=7&
ft=11&tf=0&pageid=2
5) Change the session mode to other, like stateserver.
Just want to say Hi, and I was wondering how everything is going. If
anything is unclear, please let me know. It is my pleasure to be of
assistance.
Sincerely yours,
Wei Lu
Microsoft Online Partner Support
=====================================================
PLEASE NOTE: The partner managed newsgroups are provided to assist with
break/fix
issues and simple how to questions.
We also love to hear your product feedback!
Let us know what you think by posting
- from the web interface: Partner Feedback
- from your newsreader: microsoft.private.directaccess.partnerfeedback.
We look forward to hearing from you!
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others
may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
We are currently trying your suggestions and hope to get back to you in a
day or so.
Many thanks
Stu
How is everything going? Please feel free to let me know if you need any
assistance.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
We have been trying your suggestions. It looks like we might have found a
solution but I'm not sure yet as we are still testing it. I will get back to
you later today.
Many thanks
Stuart