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.
我已經試過各種事情和尋找答案的互聯網,但迄今沒有奏效。
是否與Visual Studio 2013的工作? – 2014-12-03 11:51:58
是的,引用的程序集將從GAC中挑選出來。您需要確保您正在安裝Crystal Runtime的正確版本。請檢查更新後的帖子。 – Srikanth 2014-12-03 11:57:21
謝謝!會做。 – 2014-12-03 12:01:36