Exporting Report from reportviewer control throws error of Session timeout

  • 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

    Thanks.

    Gunjan.

  • 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

    Thanks

    David

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply