ReportViewerControl Session Timeout

ReportViewerControl Session Timeout

am 21.01.2008 17:12:45 von 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(Http Context
context)
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.W eb.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.
--

AG
Email: discussATadhdataDOTcom

RE: ReportViewerControl Session Timeout

am 22.01.2008 04:18:07 von stcheng

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/de fault.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.

--------------------
>Reply-To: "AG"
>From: "AG"
>Subject: ReportViewerControl Session Timeout
>Date: Mon, 21 Jan 2008 11:12:45 -0500

>
>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(Http Context
>context)
> at
>System.Web.HttpApplication.CallHandlerExecutionStep.System. Web.HttpApplicat
ion.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.
>--
>
>AG
>Email: discussATadhdataDOTcom
>
>
>

Re: ReportViewerControl Session Timeout

am 23.01.2008 23:14:11 von 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.

--

AG
Email: discussATadhdataDOTcom
"Steven Cheng[MSFT]" wrote in message
news:5CglzVKXIHA.360@TK2MSFTNGHUB02.phx.gbl...
> 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/de fault.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.
>
> --------------------
>>Reply-To: "AG"
>>From: "AG"
>>Subject: ReportViewerControl Session Timeout
>>Date: Mon, 21 Jan 2008 11:12:45 -0500
>
>>
>>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(Http Context
>>context)
>> at
>>System.Web.HttpApplication.CallHandlerExecutionStep.System .Web.HttpApplicat
> ion.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.
>>--
>>
>>AG
>>Email: discussATadhdataDOTcom
>>
>>
>>
>

Re: ReportViewerControl Session Timeout

am 24.01.2008 04:02:29 von stcheng

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"
>From: "AG"
>References:
<5CglzVKXIHA.360@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: ReportViewerControl Session Timeout
>Date: Wed, 23 Jan 2008 17:14:11 -0500

>
>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.
>
>--
>
>AG
>Email: discussATadhdataDOTcom
>"Steven Cheng[MSFT]" wrote in message
>news:5CglzVKXIHA.360@TK2MSFTNGHUB02.phx.gbl...
>> 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/de fault.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.
>>
>> --------------------
>>>Reply-To: "AG"
>>>From: "AG"
>>>Subject: ReportViewerControl Session Timeout
>>>Date: Mon, 21 Jan 2008 11:12:45 -0500
>>
>>>
>>>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(Http Context
>>>context)
>>> at
>>>System.Web.HttpApplication.CallHandlerExecutionStep.Syste m.Web.HttpApplic
at
>> ion.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.
>>>--
>>>
>>>AG
>>>Email: discussATadhdataDOTcom
>>>
>>>
>>>
>>
>
>
>