从SSRS检索大型报告时出错

时间:2011-11-07 17:20:27

标签: 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, 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)”。如果我过滤它,报告工作正常,所以我认为它可能对于webservice来说太大而无法返回,并且其中一部分被截断(因此错误消息)。那是对的吗?如果是这样,我该如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

尝试增加httpRuntimeReport Execution Timeout

<system.web>
  <httpRuntime executionTimeout = "10800" />
</system.web>

<强>价:

Manage timeouts in the Reporting Services 2005

相关问题