问题描述
当我执行水晶报告时,它给出了一个错误无法加载文件或程序集 'crdb_adoplus, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' 或其依赖项之一.强名称验证失败.(HRESULT 异常:0x8013141A)
When i execute crystal report it gives an error Could not load file or assembly 'crdb_adoplus, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
推荐答案
将此代码放在您的 app.config 中
Place this code in your app.config
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.2"/>
</startup>
如果它不起作用,请从此链接下载 Crystal Report Runtime http://downloads.businessobjects.com/akdlm/crnetruntime/clickonce/CRRuntime_32bit_13_0_1.msi
如果 Crystal Report 再次出现问题,请右键单击您的项目,打开属性",打开调试"选项卡并选中启用非托管代码调试"选项.
If again Crystal Report create some problem then right click on your project, open Properties, open Debug tab and check option Enable Unmanaged code debugging.
这篇关于Crystal Reports 在 Visual Studio 2010 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!