none
Reporting Service 异常 RRS feed

  • 问题

  • 目前遇到一个棘手的问题,我的项目中会用到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) 

    2011年4月1日 6:56

全部回复