除开发服务器外,水晶报表无法打开
我的水晶报表无法在 Web 表单上打开,但当我将其发布到服务器上时,它在开发服务器上运行良好。它给出以下错误。
系统找不到指定的文件。 描述:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。
异常详细信息: System.Runtime.InteropServices.COMException: 系统找不到该文件 指定。
来源错误:
生成了未处理的异常 当前执行期间 网络请求。有关信息 异常的起源和地点 可以使用异常来识别 下面的堆栈跟踪。
堆栈跟踪:
[COMException (0x80004005): 系统 找不到指定的文件。 ]
<小时>
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& 文档路径,Int32 选项)+0 [snip]版本信息:Microsoft .NET Framework 版本:2.0.50727.4952; ASP.NET版本:2.0.50727.4955
My crystal report is not opening on a web form but it is fine on a development server when I publish it on the server. It is giving the following error.
The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details:
System.Runtime.InteropServices.COMException:
The system cannot find the file
specified.Source Error:
An unhandled exception was generated
during the execution of the current
web request. Information regarding the
origin and location of the exception
can be identified using the exception
stack trace below.Stack Trace:
[COMException (0x80004005): The system
cannot find the file specified. ]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object&
DocumentPath, Int32 Options) +0 [snip]Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您缺少报告文档。
ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
是其失败的地方;对象& DocumentPath
是找不到的。无论您在开发计算机上创建并拥有什么报告文件,您都必须将其放在服务器上运行网站的帐户(网络服务?)可以访问它的位置,例如 /bin 文件夹或其他一些文件夹中网站。
如果您不确定缺少哪个文件,请获取进程监视器,将其放入在服务器上,并重新创建错误。它将显示未找到的文件以及网站正在寻找该文件的位置。
You are missing the report document.
ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
is where its failing;Object& DocumentPath
is what cannot be found.Whatever report file you created and have on your development machine, you have to put it on the server in a place where the account running the website (Network Service?) can access it, such as in the /bin folder or some other folder of the website.
If you are not sure what file you are missing, grab Process monitor, put it on the server, and recreate the error. It'll show the file that isn't being found and where the website is looking for it.
确保放置报告的文件夹具有特定权限
Make sure that folder have specific rights where the reports are placed