1681116 - Error: Could not load file or assembly 'file:///<Path>crdb_adoplus.dll' when using XBAP

SAP Knowledge Base Articles - public

1681116 - Error: Could not load file or assembly 'file:///<Path>crdb_adoplus.dll' when using XBAP


  • Using Crystal Report with WPF in XBAP application
  • "UseLegacyV2RuntimeActivationPolicy="true" has been added to the app.config file as per KBase 1525432


  • Crystal Reports for Visual Studio 2010
  • Visual Studio 2010


This problem exists when using a .NET 4.0 XBAP which tries to load a .NET 2.0 (3.5) assembly


  • Use the following code before initializing the class for the WPF form:

interface ICLRRuntimeInfo {
void xGetVersionString();
void xGetRuntimeDirectory();
void xIsLoaded();
void xIsLoadable();
void xLoadErrorString();
void xLoadLibrary();
void xGetProcAddress();
void xGetInterface();
void xSetDefaultStartupFlags();
void xGetDefaultStartupFlags();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
void BindAsLegacyV2Runtime();
  • The add the following:
ICLRRuntimeInfo rtInfo = (ICLRRuntimeInfo)RuntimeEnvironment.GetRuntimeInterfaceAsObject(Guid.Empty, typeofICLRRuntimeInfo).GUID);


CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 Crystal Reports for .NET Framework 4.0 crforvs 13 dot net dataset data set , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To


SAP Crystal Reports, developer version for Microsoft Visual Studio