ReportViewerControl Session Timeout

A

AG

I am using a ReportViewer Control in an ASP.NET 2.0 web application project
on a shared web host.
It is working fine, except in the case of a session timeout.

ProcessingMode="Remote"
Passing credentials via the method found here:
http://forums.asp.net/t/986174.aspx

If the user remains on the report page and is inactive beyond the session
timeout period. The following exception occurs when they try to return.

Exception Message: ASP.NET session has expired
StackTrace: at Microsoft.Reporting.WebForms.ReportDataOperation..ctor()
at Microsoft.Reporting.WebForms.HttpHandler.GetHandler()
at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext
context)
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
InnerException:
CurrentExecutionFilePath: /Reserved.ReportViewerWebControl.axd

I have no problem with the timeout. I would just like to return the user to
the login page (like when any other page times out), instead of generating
the exception.

Any suggestions would be appreciated.
 
S

Steven Cheng[MSFT]

Hi AG,

As for the reportviewer session timeout issue, here are some of my
underrstanding:

** As long as the session timeout is expected, that way to resolve it may
be check the session validation/timeout in code and then determine whether
to render reportviewer or not

** For session timeout, it is different from FormsAuthentication's timeout
setting. Forms Authentication timeout will cause request be redirected to
login page while session timeout will not.

Therefore, I think you may consider do something as below in your
reportviewr page:

1) check a prestored session variable in session to see whether it exists,
if not, that must means session has been timeout and you'll need to refresh
the page .

2) if the session hasn't been timeout, you can continue to display the page.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 
A

AG

Thanks Steven,

I will try that, but it will probably be a long time before I can confirm if
it works. I was unable to duplicate the condition myself, even after leaving
the report on screen for over an hour.
 
S

Steven Cheng[MSFT]

Thanks for your reply AG,

No problem. If you get any new results, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Reply-To: "AG" <[email protected]>
From: "AG" <[email protected]>
References: <[email protected]>
Subject: Re: ReportViewerControl Session Timeout
Date: Wed, 23 Jan 2008 17:14:11 -0500
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top