0

我使用带有 LocalReport 选项(使用 .rdlc 文件)的 ReportViewer 控件(ReportViewer 版本:2010 SP1)在我的项目中显示报告。将 ReportViewer 控件中的数据导出到 Excel 文件时,出现“远程主机关闭连接。错误代码为 0x800704CD”的错误消息。ReportViewer 控件中包含的数据非常大 - 超过 25.000 条记录,每条记录有 23 列。

从我点击 Excel 导出链接到我得到 IE 错误页面的时间是 10 分钟。我多次重复测试,结果都是一样的。所以我怀疑这可能是由 Web 应用程序的超时配置引起的。于是,我设置了httpRuntime/executionTimeout(显然我设置了web的debug模式为false),session timeout,form authentication cookie timeout设置为1小时,但结果是一样的(10分钟后得到错误页面)。

你知道是什么导致了这个问题吗?能否请你帮忙?

以下是我得到的错误的详细信息。

异常信息:

异常类型:HttpException
异常消息:远程主机关闭了连接。错误代码为 0x800704CD。
在 System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 结果,布尔 throwOnDisconnect)
在 System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()
在 System.Web.HttpResponse.Flush(Boolean finalFlush)
在 System.Web.HttpWriter.WriteFromStream( Byte[] 数据,Int32 偏移量,Int32 大小)
在 Microsoft.Reporting.WebForms.ReportDataOperation.StreamToResponse(流数据,HttpResponse 响应)
在 Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery,HttpResponse 响应)
在 Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep 步骤,布尔值&完成同步)

索取资料:

Request URL: http://example.com/Reserved.ReportViewerWebControl.axd?Culture=2057&CultureOverrides=True&UICulture=2057&UICultureOverrides=True&ReportStack=1&ControlID=44d295a585a8483984f0f7606a3d7fa5&Mode=true&OpType=Export&FileName=Invoice_&_Order_List_Report_20130801032657&ContentDisposition=OnlyHtmlInline&Format=Excel
Request path: /app_virtual_dir/Reserved.ReportViewerWebControl. axd
用户主机地址:xxx
用户:xxx 已通过
身份验证:True
身份验证类型:Forms
线程帐户名:IIS APPPOOL\xxx

4

0 回答 0