Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Exporting Report from reportviewer control throws error of Session timeout Expand / Collapse
Posted Wednesday, November 18, 2009 7:53 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, March 3, 2016 10:22 AM
Points: 78, Visits: 309
I have developed and deployed report on reporting server and added that report in aspx page using report viewer control. aspx page will open it as a modal dialogue box. I am able to see the report but when I am trying to export the report to EXCEL or any other format it breaks and throws the Session time out error. This happens when I am opening in modal pop up. I tried to export the report using simple aspx page and it worked. What could be the issue? Why reportviewer control is not working in modal pop up box of aspx web page?

It throws the following Error:

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() +613
Microsoft.Reporting.WebForms.HttpHandler.GetHandler() +333
Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +13
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082


Post #821329
Posted Thursday, June 7, 2012 8:28 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, June 7, 2012 8:22 AM
Points: 1, Visits: 0
I have had the same problem, the reports export ok when running the web site locally under local host, but not when in the production environment, the only way I can get it to work was by enabling cookies in the web config file but this causes other problems and I can't find a way of enabling cookies for a single page, have you (Gunjan)had any success


Post #1312547
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse