SSRS遇到了未处理的异常

时间:2016-08-11 19:21:43

标签: c# web-services reporting-services asmx ssrs-2008-r2

我有一个Windows服务,它调用ReportExecution2005.asmx Web服务并生成PDF格式的报告。它可以在95%的时间内正常工作,但有时我们会低于错误。它难以重现,所以我无法弄清楚它失败的地方。

如果我从SSRS管理网站独立运行SSRS报告,我从未见过这种错误。

有没有人遇到过这种问题?如何获得有关错误的更多信息?

20160809_00:15:12.702[Error]Exception, Failed to Process Report : 
[ErrorMessage]:Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
<html>
    <head>
        <title>
            SQL Server Reporting Services
        </title><meta name="Generator" content="Microsoft SQL Server Reporting Services 11.0.5343.0" />
<meta name="HTTP Status" content="500" />
<meta name="ProductLocaleID" content="127" />
<meta name="CountryLocaleID" content="1033" />
<style>
            BODY {FONT-FAMILY:Verdana; FONT-WEIGHT:normal; FONT-SIZE: 8pt; COLOR:black}
            H1 {FONT-FAMILY:Verdana; FONT-WEIGHT:700; FONT-SIZE:15pt}
            LI {FONT-FAMILY:Verdana; FONT-WEIGHT:normal; FONT-SIZE:8pt; DISPLAY:inline}
            .ProductInfo {FONT-FAMILY:Verdana; FONT-WEIGHT:bold; FONT-SIZE: 8pt; COLOR:gray}
            A:link {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#3366CC; TEXT-DECORATION:none}
            A:hover {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#FF3300; TEXT-DECORATION:underline}
            A:visited {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#3366CC; TEXT-DECORATION:none}
            A:visited:hover {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; color:#FF3300; TEXT-DECORATION:underline}

        </style>
    </head><body bgcolor="white">
        <h1>
            Reporting Services Error<hr width="100%" size="1" color="silver" />
        </h1><ul>
            <li>The report server encountered an unhandled exception in HttpApplication. (rsUnhandledHttpApplicationError) <a href="http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsUnhandledHttpApplicationError&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=11.0.5343.0" target="_blank">Get Online Help</a></li><ul>
                <li>For more information about this error navigate to the report server on the local server machine, or enable remote errors</li>
            </ul><hr width="100%" size="1" color="silver" /><span class="ProductInfo">SQL Server Reporting Services</span>
        </ul>
    </body>
--.
[StackTrace]:   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at RC.Common.reportexecution2005.ReportExecutionService.Render(String Format, String DeviceInfo, String& Extension, String& MimeType, String& Encoding, Warning[]& Warnings, String[]& StreamIds)
   at RC.Common.Worker.ReportWorker.GenerateReport(JobReportDto jobReportDTO)
   at RC.Common.Worker.ReportWorker.Execute(JobDto jobDto, String ServiceName)
****************************** [Thread:18828]

0 个答案:

没有答案