2014-12-03 55 views
0

所以我有一個C#網站,我必須與之合作。它使用水晶報告,所以我安裝了它(第一次使用水晶報告)。我碰到下面的錯誤來試圖運行的網站Crystal Reports一直給我:無法加載文件或程序集

Could not load file or assembly 'CrystalDecisions.Enterprise.Framework, Version=11.5.9.1229, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 

這些日誌:

=== Pre-bind state information === 
LOG: DisplayName = CrystalDecisions.Enterprise.Framework, Version=11.5.9.1229, Culture=neutral,  PublicKeyToken=692fbea5521e1304 
(Fully-specified) 
LOG: Appbase = file:///C:/School/Vacaturesite/ 
LOG: Initial PrivatePath = C:\School\Vacaturesite\bin 
Calling assembly : (Unknown). 
=== 
LOG: This bind starts in default load context. 
LOG: Using application configuration file: C:\School\Vacaturesite\web.config 
LOG: Using host configuration file: C:\Users\Beheerder\Documents\IISExpress\config\aspnet.config 
LOG: Using machine configuration file from  C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. 
LOG: Post-policy reference: CrystalDecisions.Enterprise.Framework, Version=11.5.9.1229, Culture=neutral, PublicKeyToken=692fbea5521e1304 
LOG: Attempting download of new URL file:///C:/Users/Beheerder/AppData/Local/Temp/Temporary ASP.NET Files/vs/ae77f9fe/8f0f70a0/CrystalDecisions.Enterprise.Framework.DLL. 
LOG: Attempting download of new URL file:///C:/Users/Beheerder/AppData/Local/Temp/Temporary ASP.NET  Files/vs/ae77f9fe/8f0f70a0/CrystalDecisions.Enterprise.Framework/CrystalDecisions.Enterprise.Framework.DLL. 
LOG: Attempting download of new URL file:///C:/School/Vacaturesite/bin/CrystalDecisions.Enterprise.Framework.DLL. 
WRN: Comparing the assembly name resulted in the mismatch: Revision Number 
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated. 

我已經試過各種事情和尋找答案的互聯網,但迄今沒有奏效。

回答

1

您需要安裝Crystal Reports運行時。按照下面的線程下載http://scn.sap.com/thread/2071900

以下是更詳細的列表,你會得到所有運行時版本 http://wiki.scn.sap.com/wiki/pages/viewpage.action?original_fqdn=wiki.sdn.sap.com&pageId=56787567

+0

是否與Visual Studio 2013的工作? – 2014-12-03 11:51:58

+0

是的,引用的程序集將從GAC中挑選出來。您需要確保您正在安裝Crystal Runtime的正確版本。請檢查更新後的帖子。 – Srikanth 2014-12-03 11:57:21

+0

謝謝!會做。 – 2014-12-03 12:01:36

相關問題