SAP Knowledge Base Article - Public

1877219 - How to use .Net 4.0 DLL as a data source in Crystal Reports 2011?


  • Using a .NET DLL dataset provider with Crystal Reports works if using the .NET 2.0 framework
  • Using the 4.x framework results in the following error:


Logon failed

Details: mscorlib: Could not load file or assembly 'file:path to file' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.


  • SAP Crystal Reports 2011
  • .NET 4.x dataset DLL


  1. Open notepad
  2. Paste in the following into notepad
    <?xml version="1.0" encoding="utf-8" ?>
        <startup useLegacyV2RuntimeActivationPolicy="true">
            <requiredRuntime version="v4.0.30319" safemode="true"/>

3.Save as crw32.exe.confing into C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\ directory


dataset crw crw32.exe provider , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To


SAP Crystal Reports 2011