C# SSRS遇到未处理的异常

C# SSRS遇到未处理的异常,c#,web-services,reporting-services,asmx,ssrs-2008-r2,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]

我有一个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]
20160809\u 00:15:12.702[错误]异常,无法处理报告:
[ErrorMessage]:客户端发现响应内容类型为“text/html”;字符集=utf-8',但应为“text/xml”。
请求失败,出现错误消息:
--
SQL Server报表服务
正文{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;字体大小:正常;字体大小:8pt;显示:内联}
.ProductInfo{FONT-FAMILY:Verdana;FONT-WEIGHT:bold;FONT-SIZE:8pt;COLOR:gray}
链接{FONT-SIZE:8pt;FONT-FAMILY:Verdana;COLOR:#3366CC;TEXT-DECORATION:none}
A:hover{FONT-SIZE:8pt;FONT-FAMILY:Verdana;COLOR:#FF3300;TEXT-DECORATION:underline}
答:访问{FONT-SIZE:8pt;FONT-FAMILY:Verdana;COLOR:#3366CC;TEXT-DECORATION:none}
A:访问:hover{FONT-SIZE:8pt;FONT-FAMILY:Verdana;颜色:#FF3300;文本装饰:下划线}
报告服务错误
  • 报表服务器在HttpApplication中遇到未处理的异常。(未经处理的Http应用程序错误)
    • 有关此错误的详细信息,请导航到本地服务器计算机上的报表服务器,或启用远程错误

    • SQL Server Reporting Services
    --. [StackTrace]:位于System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage消息、WebResponse响应、Stream responseStream、布尔异步调用) 位于System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName,Object[]参数) 在RC.Common.reportexecution2005.ReportExecutionService.Render(字符串格式、字符串设备信息、字符串和扩展名、字符串和MimeType、字符串和编码、警告[]和警告、字符串[]和流ID) 在RC.Common.Worker.ReportWorker.GenerateReport(JobReportDto JobReportDto)处 在RC.Common.Worker.ReportWorker.Execute(JobDto-JobDto,字符串ServiceName) ******************************[线程:18828]
    SSRS写入文本日志,其中很可能包含更多详细信息。这些文件应该在我的机器上的“\Microsoft SQL Server\\Reporting Services\LogFiles”中,它有SSRS的开发实例,这是一个位置:C:\Program files\Microsoft SQL Server\MSRS10\U 50.dev\Reporting Services\LogFiles`是的,我在下面查看过,找不到有关此错误的详细信息。SSRS将写入文本日志,其中很可能包含更多详细信息。这些文件应该在我的机器上的“\Microsoft SQL Server\\Reporting Services\LogFiles”中,这台机器上有SSRS的开发实例,位置是:C:\Program files\Microsoft SQL Server\MSRS10\U 50.dev\Reporting Services\LogFiles`是的,我在下面查看了,找不到有关此错误的详细信息。