[Crystal Reports] Could not load file or assembly crdb_adoplus.dll

Updated on     Kisan Patel

Problem:

How to solve the following exception occurring with Crystal Reports in Windows/WPF Application.

Could not load file or assembly ‘file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll’ or one of its dependencies. The system cannot find the file specified.

FileNotFoundException

Solution:

You need to add the following attribute to the startup tag.

useLegacyV2RuntimeActivationPolicy="true"

After adding above property to startup tag, your App.Config file should look like below.

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

SAP Crystal Report WPF

Leave a Reply