当前位置:编程学习 > C#/ASP.NET >>

Reporting Service 异常

不知道应该发在哪个区,只好先放这里

目前遇到一个棘手的问题,我的项目中会用到Reporting service 2008来生成报表,使用report viewer控件来预览并且同时使用API来生成PDF和excel格式的报表。

现在的情形是,有一个report有5个参数,当其中一个参数选择特定的一个值的时候,并且是选择PDF格式时会有异常,可以在report viewer控件中查看这个报表,但是选择PDF并导出时也是异常,但是excel就没有问题,server上的异常信息如下:

Exception information:

    Exception type: SoapException

    Exception message: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. ---> System.Exception: For more information about this error navigate to the report server on the local server machine, or enable remote errors

Thread information:

    Thread ID: 7

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Is impersonating: False

    Stack trace:    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 NCS.RPLMS.Framework.Common.ReportExecutionService.Render(String Format, String DeviceInfo, String& Extension, String& MimeType, String& Encoding, Warning[]& Warnings, String[]& StreamIds) in D:\RPLMS\Migration\Pre-STGBase\SourceCode\Framework\Common\ReportExecutionService.cs:line 451

   at NCS.RPLMS.Framework.Common.RPLMSUtil.GenerationReportDocument(String reportPath, String fileType, List`1 reportParams) in D:\RPLMS\Migration\Pre-STGBase\SourceCode\Framework\Common\RPLMSUtil.cs:line 432

   at NCS.RPLMS.Framework.Common.RPLMSUtil.FINUploadReportIntoReportLibrary(String reportPath, String fileType, List`1 reportParams, String documentName, String noticeNumber, String noticeType, DateTime generationDate) in D:\RPLMS\Migration\Pre-STGBase\SourceCode\Framework\Common\RPLMSUtil.cs:line 480

   at NCS.RPLMS.FIN.BusinessComponent.FinanceBC.GenerateReportIntoReportLibrary(String fileType, String noticeId, RPLMSReportParameter parameters, String reportName) in D:\RPLMS\Migration\Pre-STGBase\SourceCode\Module\FIN\BusinessComponent\FinanceBC.cs:line 1198

   at NCS.RPLMS.FIN.BusinessFacade.GenerateReportBF.GenerateReport(String fileType, String noticeId, RPLMSReportParameter parameters, String reportName) in D:\RPLMS\Migration\Pre-STGBase\SourceCode\Module\FIN\BusinessFacade\GenerateReportBF.cs:line 36

   at NCS.RPLMS.WebUI.Modules.FIN.ReportGenerate.Reports.DC.GenerateOrPreview(String fileType, String generateOrPreview, String reportName) in D:\RPLMS\Migration\Pre-STGBase\SourceCode\WebUI\Modules\FIN\ReportGenerate\Reports\DC.aspx.cs:line 106

   at NCS.RPLMS.WebUI.Modules.FIN.ReportGenerate.Reports.DC.GenerateOrPreviewReports(Object sender) in D:\RPLMS\Migration\Pre-STGBase\SourceCode\WebUI\Modules\FIN\ReportGenerate\Reports\DC.aspx.cs:line 82

   at NCS.RPLMS.WebUI.Modules.FIN.ReportGenerate.Reports.DC.ButtonGenerate_Click(Object sender, EventArgs e) in D:\RPLMS\Migration\Pre-STGBase\SourceCode\WebUI\Modules\FIN\ReportGenerate\Reports\DC.aspx.cs:line 58

   at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)

   at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)

   at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  --------------------编程问答-------------------- --------------------编程问答-------------------- 你的服务器上装了office吗?

服务器上安装没adobe reader --------------------编程问答-------------------- 没有装PDF文件格式的工具吧。 --------------------编程问答-------------------- 怎么可能没装呢,而且我上面有说,只有特定的参数才会出错,其他参数都可以正常生成PDF --------------------编程问答-------------------- msdn
在 Reporting Services 中处理异常
http://msdn.microsoft.com/zh-cn/library/ms152793(v=sql.100).aspx --------------------编程问答-------------------- 没有帮助 --------------------编程问答-------------------- about this error navigate to the report server on the local server machine, or enable remote errors

错误 导航到报表服务器到本地机器。。或者开启远程错误。。没看懂。。 --------------------编程问答-------------------- SoapException & UnhandledReportRenderingException...

应该是某参数或返回结果格式化不正确...例如不符合SOAP协议的格式,非标准时间值等,Report Viewer不支持的渲染类型等等... --------------------编程问答--------------------
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,