2011-03-24 52 views
0

我的水晶报表未在Web窗体上打开,但在服务器上发布时,它在开发服务器上没问题。它给出了以下错误。Crystal Report未在开发服务器上打开除外

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

回答

0

您缺少报告文档。 ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)是其失败的地方; Object& DocumentPath是无法找到的。

无论您在开发计算机上创建和报告的文件是什么,您都必须将其放在服务器上运行网站的帐户(网络服务?)可以访问的位置,例如/ bin文件夹或网站的其他文件夹。

如果你不确定你丢失了什么文件,抓住Process monitor,把它放在服务器上,然后重新创建错误。它会显示未找到的文件以及网站正在查找的文件。

0

确保文件夹具有放置报告的特定权限