C# 从azure托管网站上的Reportviewer导出大数据时出错

C# 从azure托管网站上的Reportviewer导出大数据时出错,c#,azure,reporting-services,ssrs-2012,report-viewer2012,C#,Azure,Reporting Services,Ssrs 2012,Report Viewer2012,我的网站托管在azure上。我使用SSRS reportviewer控件来显示我的报告。在这样做的过程中,我遇到了一个问题 每当我将大量数据导出为Excel/PDF/Word/Tiff时,它会突然抛出以下错误: Error: Microsoft.Reporting.WebForms.ReportServerException: The remote server returned an error: (401) Unauthorized. ---> System.Net.WebExcept

我的网站托管在azure上。我使用SSRS reportviewer控件来显示我的报告。在这样做的过程中,我遇到了一个问题

每当我将大量数据导出为Excel/PDF/Word/Tiff时,它会突然抛出以下错误:

Error: Microsoft.Reporting.WebForms.ReportServerException: The remote server returned an error: (401) Unauthorized. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.

   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

   at Microsoft.Reporting.WebForms.SoapReportExecutionService.ServerUrlRequest(AbortState abortState, String url, Stream outputStream, String& mimeType, String& fileNameExtension)

   --- End of inner exception stack trace ---

   at Microsoft.Reporting.WebForms.SoapReportExecutionService.ServerUrlRequest(AbortState abortState, String url, Stream outputStream, String& mimeType, String& fileNameExtension)

   at 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)

   at Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)

   at Microsoft.Reporting.WebForms.ServerReport.Render(String format, String deviceInfo, NameValueCollection urlAccessParameters, String& mimeType, String& fileNameExtension)

   at Microsoft.Reporting.WebForms.ServerModeSession.RenderReport(String format, Boolean allowInternalRenderers, String deviceInfo, NameValueCollection additionalParams, Boolean cacheSecondaryStreamsForHtml, String& mimeType, String& fileExtension)

   at Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)

   at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
它在本地(在开发人员机器上)或数据较少时工作。但它在azure上发布时无法处理大型数据集


任何帮助都将不胜感激。

任何人都可以向我提出有关此问题的任何建议?这可能根本不算什么,但我今天刚刚解决了一个问题,即报表一直工作得很好,并且在生产中得到了空白数据集结果。这取决于负载平衡器端口转发是http/https,而不是tcp/secure tcp。可能没什么(特别是你的错误是未经授权的),但值得一试。。。