[英]Crystal Report 13.0.2 giving “Load Report Failed” on web server for some reports while other are working fine
我的應用程序中有水晶報表13。 它在本地服務器上工作正常,但在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()
我嘗試了注冊表編輯,臨時權限,資源釋放,但無法正常工作。 還有其他原因嗎?
我知道這是舊帖子。 但對於仍在尋找答案的任何人:
您是否在頁面標記中注冊了Crystal Reports?
<% @ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
將報表的“復制到輸出目錄”屬性設置為“始終復制”
crystalreportsource中文件的路徑為〜/ bin / YOURFOLDER / YOURFILE
<CR: CrystalReportSource ID ="CrystalReportSource1" runat ="server">
<Report FileName="~/bin/FolderName/ReportName.rpt">
</Report>
</CR: CrystalReportSource>
試試這個,看看它是否適合您。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.