2011-11-07 40 views
1
檢索大型報表

我有一個SSRS的報告,我想通過一個.NET Web服務上加載到ReportViewer控件,像這樣:錯誤從SSRS

// 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頁面上,或者標準可以留空,並且可以返回整個報告。問題是,當搜索條件爲空時,出現此錯誤消息,並且沒有報告返回:「報告定義無效。詳細信息:名稱空間中的元素'Paragraphs'http://schemas.microsoft。 com/sqlserver/reporting/2008/01/reportdefinition'有不完整的內容。期望的可能元素列表:'段落'在命名空間'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'中。 rsInvalidReportDefinition)」。如果我過濾它,報告工作正常,所以我認爲它可能太大,Web服務不能返回,並且它的一部分被截斷(因此錯誤消息)。那是對的嗎?如果是這樣,我該如何解決這個問題?

回答

1

嘗試增加httpRuntimeReport Execution Timeout

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

編號:

Manage timeouts in the Reporting Services 2005

+0

我相信你是正確的,以這樣或那樣的......我的一個我的用戶終於獲得了更多信息性的錯誤消息:消息:請求通道在00:10:00之後等待答覆時超時。增加傳遞給請求調用的超時值或增加綁定上的SendTimeout值。分配給此操作的時間可能是超時時間的一部分。謝謝! –