C# 从SSRS检索大型报表时出错

C# 从SSRS检索大型报表时出错,c#,asp.net,web-services,reporting-services,C#,Asp.net,Web Services,Reporting Services,我有一个SSRS报告,我正试图通过.NET Web服务将其加载到ReportViewer控件中,如下所示: // CR8720 DT 10/20/10 10 VVVIMP: The report is dynmically created w/o using the RDL file. MemoryStream ms = HtmlStatement.GetReport(uxStatementText.Text, uxStatementName.Text, uxStatementC

我有一个SSRS报告,我正试图通过.NET Web服务将其加载到ReportViewer控件中,如下所示:

    // CR8720 DT 10/20/10 10 VVVIMP: The report is dynmically created w/o using the RDL file.
    MemoryStream ms = HtmlStatement.GetReport(uxStatementText.Text, uxStatementName.Text, uxStatementCode.Text);
    uxReportViewer.ServerReport.LoadReportDefinition(ms);

可以使用“我的ASP.NET”页面上的搜索条件筛选此报表,也可以将条件留空,然后返回整个报表。问题是,当搜索条件保留为空时,我会收到此错误消息,并且不会返回任何报告:“报告定义无效。详细信息:命名空间中的元素“段落”http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"内容不全,。需要的可能元素列表:“命名空间中的段落”http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'. (rsInvalidReportDefinition)”。如果我对报告进行筛选,它会工作得很好,因此我认为它可能太大,Web服务无法返回,并且部分报告被截断(因此出现错误消息)。是否正确?如果是,我将如何解决此问题?

尝试增加
httpRuntime
并:


Ref:


我相信你是对的,不管怎样……我的一个用户最终收到了一条信息更丰富的错误消息:消息:请求通道在00:10:00之后等待答复时超时。增加传递给请求调用的超时值或增加绑定上的SendTimeout值。分配给此操作的时间为是的,这是较长超时的一部分。谢谢!
<system.web>
  <httpRuntime executionTimeout = "10800" />
</system.web>