1525432 - Could not load file or assembly 'file:///<Path>crdb_adoplus.dll' or one of its dependencies

SAP Knowledge Base Article - Public

1525432 - Could not load file or assembly 'file:///<Path>crdb_adoplus.dll' or one of its dependencies

Symptom

  • Using ADO .NET Dataset
  • When CRVS2010 and VS .NET 2010 and connecting a report to a dataset produces the error;

Could not load file or assembly 'file:///C:Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified: C:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll.

Environment

  • CRVS2010 (Crystal Reports for Visual Studio .NET 2010)
  • VS .NET 2010

Cause

  • In order to support .NET 2.0 Framework scenarios, the CR runtime components are compiled for .NET 2.0 framework support
  • This issue occurs because the .NET Framework 4.0 loading behavior changed for mixed-mode components
  • The issue does not exist with the .NET 3.5 Framework
  • The .NET 3.5 and 4.0 Frameworks scenarios are tested and show full compatibility

 

Resolution

  • Add the following section to the config file:
<startup useLegacyV2RuntimeActivationPolicy="true">
  <supportedRuntime version="v4.0"/>
</startup>
  • The attribute will be required to view reports based on ADO.NET objects
  • This is not considered to be a Crystal Reports issue and there are no fixes planned

Keywords

KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To

Product

SAP Crystal Reports 2011