RDL Web报表抛出ReportServerException,已取消该操作

15:51:49,030 RsBase(15) [ERROR] - Microsoft.Reporting.WebForms.ReportServerException: 已取消该操作。 ---> System.OperationCanceledException: 已取消该操作。
   --- 内部异常堆栈跟踪的结尾 ---
   在 Microsoft.Reporting.WebForms.SoapReportExecutionService.ServerUrlRequest(AbortState abortState, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
   在 Microsoft.Reporting.WebForms.SoapReportExecutionService.Render(AbortState abortState, String reportPath, String executionId, String historyId, String format, XmlNodeList deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
   在 Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
   在 Microsoft.Reporting.WebForms.ServerReport.Render(String format, String deviceInfo, NameValueCollection urlAccessParameters, String& mimeType, String& fileNameExtension)
   在 Microsoft.Reporting.WebForms.ServerModeSession.RenderReport(String format, Boolean allowInternalRenderers, String deviceInfo, NameValueCollection additionalParams, Boolean cacheSecondaryStreamsForHtml, String& mimeType, String& fileExtension)
   在 Microsoft.ReportingServices.Rendering.HtmlRenderer.ViewerRenderer.SPBProcessingStub.GetNextPage(RPLReport& rplReport)
   在 Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.GetNextPage()
   在 Microsoft.ReportingServices.Rendering.HtmlRenderer.HTML4Renderer.InitializeReport()
   在 Microsoft.ReportingServices.Rendering.HtmlRenderer.ViewerRenderer.Render(HtmlTextWriter outputWriter)
   在 Microsoft.Reporting.WebForms.LocalHtmlRenderer.Render(NameValueCollection deviceInfo, PageCountMode pageCountMode, ReportControlSession reportControlSession, CreateAndRegisterStream streamCallback, String& scrollScript, String& pageStyle)
   在 Microsoft.Reporting.WebForms.ReportControlSession.RenderReportHTML4(NameValueCollection deviceInfo, PageCountMode pageCountMode, String& scrollScript, String& pageStyle)
   在 Microsoft.Reporting.WebForms.ReportControl.RenderReport(ReportControlSession session, String viewerInstanceIdentifier, PageCountMode pageCountMode, Int32 pageNumber, InteractivityPostBackMode interactivityMode, SearchState searchState, String replacementRoot, String hyperlinkTarget, ScrollTarget scrollTarget, String alertMessage, DeviceInfoCollection initialDeviceInfos, String browserMode, Boolean sizeToContent)
   在 Microsoft.Reporting.WebForms.ReportArea.RenderReport(ReportControlSession session, String viewerInstanceIdentifier, PageCountMode pageCountMode, Int32 pageNumber, InteractivityPostBackMode interactivityMode, SearchState searchState, String replacementRoot, String hyperlinkTarget, ScrollTarget scrollTarget, String alertMessage, DeviceInfoCollection initialDeviceInfos, String browserMode, Boolean sizeToContent)
   在 Microsoft.Reporting.WebForms.ReportViewer.RenderReport(Boolean updateDocMap)
   在 Microsoft.Reporting.WebForms.ReportViewer.OnPreRender(EventArgs e)

I found the timeout that caused the cancel problem. It was the AsyncWaitPostBackTimeout of the asp:ScriptManager that by default is set to 90 seconds. When I increased it the report was working as it should

设置 asp:ScriptManager的AsyncWaitPostBackTimeout=0为不操时

来源:https://social.msdn.microsoft.com/Forums/sqlserver/en-US/544b5def-1b22-4e23-9472-da3120f09fca/report-viewer-control-returns-operationcanceledexception-onerror-event-after-90-seconds?forum=sqlreportingservices

 

posted @ 2014-11-24 16:51  Rain520  阅读(1037)  评论(0编辑  收藏  举报