简体   繁体   中英

Crystal Reports are not working in Visual Studio 2010

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)

  1. Place this code in your app.config

     <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.2"/> </startup> 
  2. If it would not work then download Crystal Report Runtime from this link http://downloads.businessobjects.com/akdlm/crnetruntime/clickonce/CRRuntime_32bit_13_0_1.msi

  3. 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.

If you are running .Net 4 in VS2010, then you may need to add the following to your .config file (configuration section):

<startup useLegacyV2RuntimeActivationPolicy="true">
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>

If this doesn't work, then you need to upgrade to Crystal Report for VS2010 from this link .

如果您的系统中装有Visual Studio 2010,则不会安装Crystal Report,因为Visual Studio 2010中没有任何Crystal报表。要打开Crystal或.rpt文件,请安装SAP Crystal Report2010。它将从SAP对象Websit下载。

在应用程序配置中添加此代码

<startup useLegacyV2RuntimeActivationPolicy="true">  </startup> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM