Asked by:
ASP.NET session has expired report viewer

Question
-
I have a Report Viewer on an .aspx page. It has the option of selecting one report from several Radio Buttons. Sometimes when the user chooses a new Radio Button, the contents of the Report Viewer begin to refresh, but then the error message "ASP.NET session has expired" displays. Most of the time this error message displays inside the report viewer in plain text, with no error details. Occasionally, this error message will display with the exception details and stack trace below it. My question is 1) Why is this happening and 2) How can it be fixed?
- Moved by Lie You Wednesday, July 13, 2011 3:29 AM ASP.Net issue (From:Visual C# General)
Tuesday, July 5, 2011 1:20 PM
All replies
-
On 7/5/2011 9:20 AM, Jonathan Du wrote:> I have a Report Viewer on an .aspx page. It has the option of selecting> one report from several Radio Buttons. Sometimes when the user chooses a> new Radio Button, the contents of the Report Viewer begin to refresh,> but then the error message "ASP.NET session has expired" displays. Most> of the time this error message displays inside the report viewer in> plain text, with no error details. Occasionally, this error message will> display with the exception details and stack trace below it. My question> is 1) Why is this happening and 2) How can it be fixed?The session has timed out. The user sat there too long doing nothing andtime expired for the session. Either extend the session time out time orinform the users that they cannot let sit for a long period and expectthe session to still be there when they return to the screen and try todo something.Tuesday, July 5, 2011 1:28 PM
-
Hello,
You should handle the session timeout (redirect to login page when the session expires). In ASP .net, you can configure the timeout in the web.config file. Here is a tutorial on codeproject.
However, I invite you to post to forums.asp.net .
Kind regards,
aelassas.free.frTuesday, July 5, 2011 1:36 PM -
Thank you sir. The issue is somewhat different as the user receives the session timeout message after only letting the screen sit idle for a period of only 20-30 seconds. The timeout is set to 600 seconds or 10 minutes. It happens not even a minute after the user navigates to the page, which is why I think this issue is something different.Tuesday, July 5, 2011 2:16 PM
-
Hello Jonathan,
Welcome to the MSDN Forum.
Have you seen this article?
Did Your Session Really Expire? - Brian Hartman's Report Viewer Blog - Site Home - MSDN Blogs
I also suggest that you can post this issue to the ASP.Net Forum for more efficient responses. Here is the link for your reference:
Hope it helps.
Best Regards,
Rocky Yue[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Thursday, July 7, 2011 7:43 AM