標籤:
win7 64位系統,使用vs2013, 用水晶報表報以下錯誤, 安裝了 CrystalReports10_5 中的 CRRedist2008_x64.msi CRRedist2008_x86.msi 仍然報以下錯誤。
“/”應用程式中的伺服器錯誤。
An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.
說明: 執行當前 Web 請求期間,出現未處理的例外狀況。請檢查堆疊追蹤資訊,以瞭解有關該錯誤以及代碼中導致錯誤的出處的詳細資料。
異常詳細資料: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.
源錯誤:
行 13: {行 14: //建立水晶報表文檔行 15: ReportDocument myReport = new ReportDocument();行 16: 行 17: protected void Page_Load(object sender, EventArgs e) |
解決方案:
1、清空項目對應的.NET版本下的 Temporary ASP.NET Files 檔案夾
如:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files
2、重建項目;
類似問題參考文檔:
http://bbs.csdn.net/topics/390897062#
http://www.cnblogs.com/terrysun/archive/2010/03/17/1688112.html
vs2013中使用水晶報表報錯,提示沒有安裝環境