底层连接已关闭:接收时发生意外错误

底层连接已关闭:接收时发生意外错误

问题描述:

我们正在使用Reporting Service(SSRS 2008)webservice(ReportingService2005.asmx,ReportingExecutionService2005.asmx)将报告导出/从Windows应用程序呈现为PDF格式。当导出大量数据包含报告(Upto 10MB)时,我们会收到异常,因为“底层连接已关闭:接收时出现意外错误”。少量的数据包含报告正常工作。底层连接已关闭:接收时发生意外错误

相同的报告在我们的开发环境中正常工作。我们在生产环境中遇到的这个问题。

异常详细信息:

System.Net.WebException:本 基础连接已关闭:在 发生 意外错误接收。在 System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(的WebRequest 请求)在 System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(的WebRequest 请求)在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(串 方法名,对象[]参数)在 ReportWebReference.ReportingService.Render(串 报告,字符串格式,字符串 HistoryID,字符串DeviceInfo, 的parameterValue []参数, DataSourceCredentials []凭证, 串ShowHideToggle,串& 编码,字符串& MimeType, 的parameterValue [] & ParametersUsed, 警告[] &警告的String [] & StreamIds)

即使报告服务超时设置为 “无限”,我们所面临的问题。

要解决此isuue,我们需要在报表服务器/ IIS更改任何配置设置?..

+0

把这个解决方案 - [http://iwillsharemypoint.blogspot.co.il/2011/12/underlying-connection-was-closed.html](http://iwillsharemypoint.blogspot.co。 il/2011/12/underlying-connection-was-closed.html)它是一个代理问题 – roi 2012-12-12 19:26:10

你可能会通过检查报告服务器上的日志文件获取有关错误的详细信息。

Reporting Services Log Files