【问题标题】:The underlying connection was closed: An unexpected error occurred on a receive底层连接已关闭:接收时发生意外错误
【发布时间】:2011-01-25 10:14:26
【问题描述】:

我们正在使用 Reporting Service(SSRS 2008) webservice(ReportingService2005.asmx, ReportingExecutionService2005.asmx) 从 Windows 应用程序将报告导出/呈现为 PDF 格式。当导出包含报告的大量数据(高达 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,字符串设备信息, ParameterValue[] 参数, DataSourceCredentials[] 凭据, 字符串显示隐藏切换,字符串& 编码,字符串和 MimeType, ParameterValue[]&ParametersUsed, 警告[]& 警告,字符串[]& StreamIds)

即使报告服务超时设置为“无限”,我们也面临着这个问题。

要解决此问题,我们是否需要更改报告服务器/IIS 中的任何配置设置?..

【问题讨论】:

标签: c# reporting-services ssrs-2008


【解决方案1】:

通过检查报告服务器上的日志文件,您可能会获得有关错误的更多信息。

Reporting Services Log Files

【讨论】:

    猜你喜欢
    • 2014-03-10
    • 2020-06-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多