【发布时间】:2011-11-08 12:00:17
【问题描述】:
我有一个 ASP.NET 应用程序,它公开了一个 Microsoft ReportViewer(实际上是一个 MVC3 应用程序,其中一个 WebForm 托管了 ReportViewer)。运行大型报告时,会发生超时,导致请求停止,并显示空白页代替报告。然而,以下超时参数是以编程方式设置的:
Viewer.ServerReport.Timeout = Configuration.ReportViewerTimeout;
ScriptManager.AsyncPostBackTimeout = Configuration.ReportViewerAjaxTimeout;
各自的值是 -1 和 0,根据文档,它们被解释为没有超时。我也试过大值,没区别。
在等待报告加载大约一分钟后(“正在加载”消息框),我得到一个空白报告,并在我的 Firebug 控制台窗口中看到:
中止
Sys.WebForms.PageRequestManagerTimeoutException: 服务器请求超时。
[中断此错误] this._endPostBack(this._cr...anagerTimeoutError(), sender, null);
我也尝试将其添加到我的 web.config:
<httpRuntime maxRequestLength="1024000" executionTimeout="999999" />
在 IIS > 我的站点 > 高级设置 > 连接限制中,我将“连接超时(秒)”设置为 1200。所有这些都没有区别。
有人知道我可能会错过什么吗?
【问题讨论】:
标签: asp.net iis timeout reportviewer