I have the following situation:
Microsoft Report Viewer 2010 is used to display reports (.rdlc files) locally in an ASP.NET web application. Report data is provided by assigning a data source in code behind the ASPX page. Here is an example:
if(!IsPostBack){
ReportViewer1.Reset();
ReportDataSource reportDataSource = new ReportDataSource();
reportDataSource.Name = "DataContainerType";
reportDataSource.Value = DatasourceOnPage;
reportDataSource.DataSourceId = "DatasourceOnPageID";
reportDataSource.DataMember = "DataSourceView";
ReportViewer1.ProcessingMode = ProcessingMode.Local;
ReportViewer1.LocalReport.DisplayName = "ReportName";
ReportViewer1.LocalReport.ReportEmbeddedResource = "Reportfile.rdlc";
ReportViewer1.LocalReport.DataSources.Add(reportDataSource);
}
This usually works fine, each report has very good workloads.
When I leave the page open until the workflow processes, try updating the report or doing some postback on the report page, I get an (unhandled) ASP.NET expired exception.
: : AspNetSessionExpiredException : Die ASP.NET-Sitzung ist abgelaufen oder konnte nicht gefunden > werden. Microsoft.Reporting.WebForms.ViewerDataOperation..ctor() Microsoft.Reporting.WebForms.HttpHandler.GetHandler(String operationType) Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest( HttpContext) at > System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionS > tep.Execute() System.Web.HttpApplication.ExecuteStep( IExecutionStep, Boolean & > )
IIS 5 . InProc web.config, , , . ASP.NET, . , .
, . , , , Report Viewer , .
, - ReportViewer, . - , IsPostBack, .
, , , . , .
Windows Server 2003
.NET 4.0
Report Viewer 2010
, , ?