开发者

Microsoft ReportViewer - ASP.NET Session Expired

开发者 https://www.devze.com 2023-01-10 00:04 出处:网络
This question is related to Microsoft ReportViewer: Session Expired Errors.Unfortunately, the accepted answer does not solve my issue.The report viewer in question is running in a farm, with multiple

This question is related to Microsoft ReportViewer: Session Expired Errors. Unfortunately, the accepted answer does not solve my issue. The report viewer in question is running in a farm, with multiple worker processes running in each app pool. Session mode is SQL. I have implemented IReportServerConnection.

The problem I have is that the session is coming back expired immediately. I can duplica开发者_运维知识库te this on a single box, so I assume this is related to the multiple worker processes. I am using RDL files and I don't think the ReportViewer even needs session enabled. So my questions is: How do I get rid of this error? If it is by disabling session for reportviewer, how do I do that? I thought that implementing IReportServerConnection would handle that. The documentation seems sparse. Any help is greatly appreciated.

Here is the exception and stack trace:

Message: ASP.NET session has expired

Process Name: Microsoft.ReportViewer.WebForms

Type: Microsoft.Reporting.WebForms.AspNetSessionExpiredException

StackTrace: at Microsoft.Reporting.WebForms.ReportDataOperation..ctor() at Microsoft.Reporting.WebForms.HttpHandler.GetHandler(String operationType) at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)


I ended up setting AsyncRendering to False. I had read this solution, but hoped to find an alternative. There may be other options for web gardens/farms, but this is the only one I could come up with in the limited time I had to look.

http://msdn.microsoft.com/en-us/library/ms252090%28v=VS.90%29.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号