Reporting Service 异常

xcrow713 2011-04-04 10:11:25
不知道应该发在哪个区,只好先放这里

目前遇到一个棘手的问题,我的项目中会用到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)
...全文
146 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
快溜 2011-04-04
  • 打赏
  • 举报
回复
没有装PDF文件格式的工具吧。
子夜__ 2011-04-04
  • 打赏
  • 举报
回复
你的服务器上装了office吗?

服务器上安装没adobe reader
vrhero 2011-04-04
  • 打赏
  • 举报
回复
SoapException & UnhandledReportRenderingException...

应该是某参数或返回结果格式化不正确...例如不符合SOAP协议的格式,非标准时间值等,Report Viewer不支持的渲染类型等等...
子夜__ 2011-04-04
  • 打赏
  • 举报
回复
about this error navigate to the report server on the local server machine, or enable remote errors

错误 导航到报表服务器到本地机器。。或者开启远程错误。。没看懂。。
xcrow713 2011-04-04
  • 打赏
  • 举报
回复
没有帮助
wosizy 2011-04-04
  • 打赏
  • 举报
回复
msdn
在 Reporting Services 中处理异常
http://msdn.microsoft.com/zh-cn/library/ms152793(v=sql.100).aspx
xcrow713 2011-04-04
  • 打赏
  • 举报
回复
怎么可能没装呢,而且我上面有说,只有特定的参数才会出错,其他参数都可以正常生成PDF

62,244

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧