I have developed a web portal that uses ReportViewer web control to
connect to a remote SQL 2005 Report server and displays the reports on
the client side. The asp.net page has been coded to automatically
impersonate a specific user who has access to the report server so that
the customer don't get a pop-up asking for login credentials. Once the
report has been displayed in the Report viewer control, I am getting an
error when I click on Refresh, exports, ... buttons on the reportviewer
toolbar.. Can someone please help me resolve this.
Here is the error description:
Execution 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: System.Exception: Execution 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:
[Exception: Execution session has expired]
Microsoft.Reporting.WebForms.ServerIdentityStore.G etCredentials(String
controlID) +151
Microsoft.Reporting.WebForms.ServerIdentityStore.G etCredentials(Guid
controlID) +21
Microsoft.Reporting.WebForms.ReportViewer.LoadView State(Object
savedState) +458
System.Web.UI.Control.LoadViewStateRecursive(Objec t savedState) +251
System.Web.UI.Control.LoadChildViewStateByIndex(Ar rayList
childState) +142
System.Web.UI.Control.LoadViewStateRecursive(Objec t savedState) +292
System.Web.UI.Control.LoadChildViewStateByIndex(Ar rayList
childState) +142
System.Web.UI.Control.LoadViewStateRecursive(Objec t savedState) +292
System.Web.UI.Page.LoadAllState() +513
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+2533