2013-11-22 160 views
0

我的應用程序中有水晶報告13。它在本地服務器上正常工作,但在Web服務器上發出加載報告失敗錯誤。這裏是例外詳情 -Crystal Report 13.0.2在Web服務器上發出「加載報告失敗」報告,其他報告正在進行中

 Message: Load report failed. 
    Data: System.Collections.ListDictionaryInternal 
    Source: CrystalDecisions.CrystalReports.Engine 
    StackTrace: at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() 
      at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.get_ProductLocaleID() 
      at CrystalDecisions.ReportSource.CachedObjectReportSource.GetReport(RequestContext context, Boolean bAddToCacheWhenCreated) 
      at CrystalDecisions.Web.CrystalReportSource.get_ReportDocument() 
      at ABC.AB.ABReportCardCrystal.Page_Load(Object sender, EventArgs e) 
    InnerException: System.Threading.ThreadAbortException: Thread was being aborted. 
      at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) 
      at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) 
      at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() 

我已經試過註冊表編輯,臨時許可,資源釋放,但它不工作。這個問題還有其他原因嗎?

回答

0

我知道這是一箇舊帖子。但對於仍在尋找答案的人:

您是否在頁面標記中註冊了Crystal Reports?

<% @ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" 
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %> 

設置屬性「複製到輸出目錄」的報告中,以「複製總是」

在crystalreportsource文件的路徑將是〜/斌/ YOURFOLDER/YOURFILE

<CR: CrystalReportSource ID ="CrystalReportSource1" runat ="server"> 
      <Report FileName="~/bin/FolderName/ReportName.rpt"> 
      </Report> 
     </CR: CrystalReportSource> 

試試看看它是否適合你。

+0

感謝您的回覆,但仍然無法正常工作 –

相關問題