无法加载文件或程序集CrystalDecisions.CrystalReports.Engine [英] Could not load file or assembly CrystalDecisions.CrystalReports.Engine

查看:137
本文介绍了无法加载文件或程序集CrystalDecisions.CrystalReports.Engine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的用户的终端运行2应用程序。我使用VS 2005与Crystal Reports捆绑版一起构建了一个应用程序,而另一个外部产品则使用了不同的Crystal Report版本。大约有25个用户使用相同的组合,但是只有一个给出以下错误:

My user's Terminal Runs 2 application. One of which I built an application using VS 2005 with Crystal Reports bundled version and another outside product which uses a different Crystal Report version. There were about 25 users who use the same combination but only one gives the the following error:


无法加载文件或程序集
'CrystalDecisions.CrystalReports.Engine,版本= 12.0.2000.0,
文化=中性,PublicKeyToken = 692fbea5521e1304'或其
依赖项之一。系统找不到指定的文件。

Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version = 12.0.2000.0, Culture=neutral, PublicKeyToken = 692fbea5521e1304' or one of its dependencies. The System cannot find the file specified.

有关调用即时
(JIT)调试而不是此对话框的详细信息,请参见此消息的末尾。

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

********** 例外文本 ********** System.IO.FileNotFoundException:无法加载文件或程序集
'CrystalDecisions.CrystalReports.Engine,版本= 12.0.2000.0,
Culture = neutral,PublicKeyToken = 692fbea5521e1304'或其$ b之一$ b依赖项。该系统找不到指定的文件。文件名:
'CrystalDecisions.CrystalReports.Engine,Version = 12.0.2000.0,
Culture = neutral,PublicKeyToken = 692fbea5521e1304'at
Com.Isi.Client.OMSClient.CrystalReportViewer.LoadRuntime()在
处Com.Isi.Client.OMSClient.Program.LoadCrystalReportRuntime()在
处System.Threading.ThreadHelper.ThreadStart_Context(对象状态)在
处System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext,ContextCallback回调,对象状态,布尔值
preserveSyncCtx),位于
System.Threading.ExecutionContext.Run(ExecutionContext
executionContext,ContextCallback回调,对象状态,布尔值
prepareSyncCtx)在
处System.Threading.ExecutionContext.Run(ExecutionContext
执行上下文,ContextCallback回调,对象状态)在
处System.Threading.ThreadHelper.ThreadStart()

********** Exception Text ********** System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. File name: 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' at Com.Isi.Client.OMSClient.CrystalReportViewer.LoadRuntime() at Com.Isi.Client.OMSClient.Program.LoadCrystalReportRuntime() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()

WRN:程序集绑定日志记录已关闭。要启用程序集绑定
故障日志记录,请将注册表值
[HKLM\Software\Microsoft\Fusion!EnableLog](DWORD)设置为1。注意:
会降低性能。与程序集绑定失败
日志记录相关联。要关闭此功能,请删除注册表值
[HKLM\Software\Microsoft\Fusion!EnableLog]。

WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

*** ******* 装入的程序集 ********** mscorlib
程序集版本:4.0.0.0
Win32版本:4.0。 30319.17929建于:FX45RTMREL
代码库:file:/// C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
------------ ---------------------------- AT
汇编版本:4.30.29.0
Win32版本:4.30.29.0
代码库:file:/// C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/AT.exe
------------------ ---------------------- System.Windows.Forms
程序集版本:4.0.0.0
Win32版本:4.0.30319.17929创建者: FX45RTMREL
代码库:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
---------------------------------------- System.Drawing
程序集版本:4.0.0.0
Win32版本:4.0.30319.17929建于:FX45RTMREL
代码库:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/ v4.0_4.0.0.0__b03f5f7f11d50a3a / System.Drawing.dll
--------------------------------- -------系统
程序集版本:4.0.0.0
Win32版本:4.0.30319.17929创建人:FX45RTMREL
代码库:file:/// C:/ Windows / Microsoft。 Net / assembly / GAC_MSIL / System / v4.0_4.0.0.0__b77a5c561934e089 / System.dll
--------------------------- ------------- System.Configuration
程序集版本:4.0.0.0
Win32版本:4.0.30319.17929建于:FX45RTMREL
代码库:file:// /C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
--------------- ------------------------- Com.Isi.Client.OMSClient.Core
程序集版本:4.30.29.1
Win32版本:4.30.29.1
CodeBas e:file:/// C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Com.Isi.Client.OMSClient.Core.DLL
------------- --------------------------- Com.Isi.Common.Shared
程序集版本:4.30.24.0
Win32版本:4.30.24.0
代码库:file:/// C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Com.Isi.Common.Shared.DLL
------- --------------------------------- System.Xml
程序集版本:4.0.0.0
Win32版本:4.0.30319.17929创建人:FX45RTMREL
代码库:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml。 dll
---------------------------------------- Microsoft.GeneratedCode
程序集版本:1.0.0.0
Win32版本:4.0.30319.17929建于:FX45RTMREL
代码库:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/ v4.0_4.0.0.0__b77a5c561934e089 / System.Xml.dll
--------------------------------- ------- Syncfu sion.Shared.Base
程序集版本:6.403.0.15
Win32版本:6.403.0.15
代码库:file:/// C:/ Program%20Files / DirectFN / DirectFN%20Admin%20Terminal /Syncfusion.Shared.Base.DLL
-------------------------------------- -Microsoft.GeneratedCode
程序集版本:1.0.0.0
Win32版本:4.0.30319.17929建于:FX45RTMREL
代码库:file:/// C:/Windows/Microsoft.Net/assembly /GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
-------------------------- -------------- Com.Isi.Client.ClientUtils
程序集版本:4.30.24.0
Win32版本:4.30.24.0
代码库:file:/ //C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Com.Isi.Client.ClientUtils.DLL
-------------------- -------------------- Com.Isi.Common.Tools
汇编版本:4.30.24.0
Win32版本:4.30.24.0
代码库:file:/// C:/ Program%20Files / DirectFN / DirectFN%20Admin%20Termina l / Com.Isi.Common.Tools.DLL
----------------------------------- ----- Com.Isi.Client.ODCConnection
程序集版本:4.30.24.0
Win32版本:4.30.24.0
代码库:file:/// C:/ Program%20Files / DirectFN / DirectFN%20Admin%20Terminal / Com.Isi.Client.ODCConnection.DLL
----------------------------- ----------- Com.Isi.Client.Trade.TradeService
程序集版本:2.2.0.0
Win32版本:2.2.0.0
代码库:file:// /C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Com.Isi.Client.Trade.TradeService.DLL
------------------- --------------------- Com.Isi.Client.Interfaces
程序集版本:4.30.24.0
Win32版本:4.30.24.0
代码库:file:/// C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Com.Isi.Client.Interfaces.DLL
------------- --------------------------- Microsoft.GeneratedCode
程序集版本:1.0.0.0
Win32版本:4.0.30319.17929建于:FX 45RTMREL
代码库:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
---- ------------------------------------ System.Data
程序集版本:4.0.0.0
Win32版本:4.0.30319.17929内置人:FX45RTMREL
代码库:file:/// C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System .Data.dll
----------------------------------------系统。核心
程序集版本:4.0.0.0
Win32版本:4.0.30319.17929创建人:FX45RTMREL
代码库:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System .Core / v4.0_4.0.0.0__b77a5c561934e089 / System.Core.dll
------------------------------ ---------- Microsoft.GeneratedCode
程序集版本:1.0.0.0
Win32版本:4.0.30319.17929生成者:FX45RTMREL
代码库:file:/// C: /Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e 089 / System.Xml.dll
--------------------------------------- -Com.Isi.Common.Controls
程序集版本:4.30.24.0
Win32版本:4.30.24.0
代码库:file:/// C:/ Program%20Files / DirectFN / DirectFN% 20Admin%20Terminal / Com.Isi.Common.Controls.DLL
--------------------------------- ------- Syncfusion.Tools.Windows
程序集版本:6.403.0.15
Win32版本:6.403.0.15

********** Loaded Assemblies ********** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll ---------------------------------------- AT Assembly Version: 4.30.29.0 Win32 Version: 4.30.29.0 CodeBase: file:///C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/AT.exe ---------------------------------------- System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- Com.Isi.Client.OMSClient.Core Assembly Version: 4.30.29.1 Win32 Version: 4.30.29.1 CodeBase: file:///C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Com.Isi.Client.OMSClient.Core.DLL ---------------------------------------- Com.Isi.Common.Shared Assembly Version: 4.30.24.0 Win32 Version: 4.30.24.0 CodeBase: file:///C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Com.Isi.Common.Shared.DLL ---------------------------------------- System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- Syncfusion.Shared.Base Assembly Version: 6.403.0.15 Win32 Version: 6.403.0.15 CodeBase: file:///C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Syncfusion.Shared.Base.DLL ---------------------------------------- Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- Com.Isi.Client.ClientUtils Assembly Version: 4.30.24.0 Win32 Version: 4.30.24.0 CodeBase: file:///C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Com.Isi.Client.ClientUtils.DLL ---------------------------------------- Com.Isi.Common.Tools Assembly Version: 4.30.24.0 Win32 Version: 4.30.24.0 CodeBase: file:///C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Com.Isi.Common.Tools.DLL ---------------------------------------- Com.Isi.Client.ODCConnection Assembly Version: 4.30.24.0 Win32 Version: 4.30.24.0 CodeBase: file:///C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Com.Isi.Client.ODCConnection.DLL ---------------------------------------- Com.Isi.Client.Trade.TradeService Assembly Version: 2.2.0.0 Win32 Version: 2.2.0.0 CodeBase: file:///C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Com.Isi.Client.Trade.TradeService.DLL ---------------------------------------- Com.Isi.Client.Interfaces Assembly Version: 4.30.24.0 Win32 Version: 4.30.24.0 CodeBase: file:///C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Com.Isi.Client.Interfaces.DLL ---------------------------------------- Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll ---------------------------------------- System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- Com.Isi.Common.Controls Assembly Version: 4.30.24.0 Win32 Version: 4.30.24.0 CodeBase: file:///C:/Program%20Files/DirectFN/DirectFN%20Admin%20Terminal/Com.Isi.Common.Controls.DLL ---------------------------------------- Syncfusion.Tools.Windows Assembly Version: 6.403.0.15 Win32 Version: 6.403.0.15

****** **** JIT调试 ********** 要启用即时(JIT)调试,请为此应用程序或计算机$ b启用.config文件。 $ b(machine.config)必须在
system.windows.forms部分中设置了jitDebugging值。还必须在启用调试的情况下编译应用程序

********** JIT Debugging ********** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

例如:


启用JIT调试后,任何未处理的异常都会发送到计算机上注册的JIT调试器
,而不是由
处理对话框。

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

调查显示,在用户的GAC中,我发现了两个版本的Crystal Reports CrystalDecisions.CrystalReports.Engine,它们是:
13.0.2000.0
10.2.3600.0

Investigation reveals that in user's GAC, I found 2 versions of Crystal Report's CrystalDecisions.CrystalReports.Engine which are: 13.0.2000.0 10.2.3600.0

这与我在其他用户的GAC中找到的组合相同。是什么触发了错误的一部分,提示系统找不到指定的文件。确实,没有在该版本下指定文件,但是其他用户使用它的方式。怎么了?

This is the same combination I found in other users' GAC. What triggers me the portion of the error which says "The System cannot find the file specified". Indeed there were no files specified under the version, but how come other users were using it. What is wrong?

推荐答案

尝试为.NET Framework安装SAP Crystal Reports运行时引擎。它对我有用。

Try with installing SAP Crystal Reports runtime engine for .NET Framework. It works for me.

这篇关于无法加载文件或程序集CrystalDecisions.CrystalReports.Engine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆