CrystalReportsException:加载报告失败 [英] CrystalReportsException: Load report failed

查看:107
本文介绍了CrystalReportsException:加载报告失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经建立了一个带有水晶报告的网络项目。当我使用visual studio 2008运行该项目时,它运行正常..



但是当我在IIS上部署它并使用IP地址运行它时会出现以下错误..

 CrystalDecisions.Shared.CrystalReportsException:加载报告失败。 ---> System.Runtime.InteropServices.COMException:系统找不到指定的路径。在CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath,Int32 Options)的CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath,Int32 Options)中,在CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()---内部结束异常堆栈跟踪---在CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename,OpenReportMethod openMethod,Int16 parentJob)上的CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()处于CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)在默认2.TreeView1_SelectedNodeChanged(对象发件人,EventArgs e)在c:\Inetpub \wwwroot \erp_web \Default2.aspx.cs:第154行

第154行的代码是Default2.aspx。 cs
rd.Load(Server.MapPath(〜\\CrPO.rpt));



我无法理解的问题是什么。我尝试了水晶报告的路径数量

以及访问驱动器c的完全权限:..



什么是解决方案?请建议我。



关于

Rikin

解决方案

系统找不到指定的路径。

这只是意味着你用来引用路径的路径不正确。



或者,直接使用绝对路径或使用正确的相对路径。您需要确保路径正确,以便找到并使用该文件。



对于相对路径,您可以尝试此提示并正确解析路径设置文件的来源:解决多文件夹中的路径网站 [ ^ ]


检查此提示/技巧



Crystal Reports:修复加载报告失败错误。 [ ^ ]

嘿我得到了一个解决方案..

i只需删除身份impersonate =true来自web.co的标签nfig和它正常工作..



thanx all to response ..


Hi,
I have build a web project with a crystal report. when i run that project using visual studio 2008 it run properly..

But when I deploy it on IIS and run it using IP address it gives following Error..

CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: The system cannot find the path specified. at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() --- End of inner exception stack trace --- at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) at Default2.TreeView1_SelectedNodeChanged(Object sender, EventArgs e) in c:\Inetpub\wwwroot\erp_web\Default2.aspx.cs:line 154

code on line 154 is Default2.aspx.cs
rd.Load(Server.MapPath("~\\CrPO.rpt"));


What is the problem i can't understand. I tried numbers of path for crystal report
and also full permission to access drive c:..

What is solution?? Please suggest me.

With regard
Rikin

解决方案

The system cannot find the path specified.
This simply means that the path is incorrect that you are using to refer the path.

Either, use a absolute path directly OR use a correct relative path. You would need to make sure that the path is correct such that file is found and used.

For relative path, you can try this Tip and resolve the path correctly before setting the source of the file: Resolving Paths in a Multi-Folder WebSite[^]


Check this Tip/Trick

Crystal Reports: Fix for "Load report failed" error.[^]


hey i Got A solution for it..
i just remove "" identity impersonate="true" " tag from web.config and it working properly..

thanx all to response..


这篇关于CrystalReportsException:加载报告失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆