Crystal Reports一直给我:无法加载文件或程序集

时间:2014-12-03 11:35:10

标签: c# .net crystal-reports .net-assembly

所以我有一个C#网站,我必须与之合作。它使用水晶报告,所以我安装了它(第一次使用水晶报告)。我在尝试运行网站时遇到了以下错误

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 个答案:

答案 0 :(得分: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