2011-03-24 129 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

確保文件夾具有放置報告的特定權限