Symptom
- 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.
Environment
- SAP Crystal Reports 2011
- .NET 4.x dataset DLL
Resolution
- Open notepad
- Paste in the following into notepad
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<requiredRuntime version="v4.0.30319" safemode="true"/>
</startup>
</configuration>
3.Save as crw32.exe.confing into C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\ directory
Keywords
dataset crw crw32.exe provider , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To
Product
SAP Crystal Reports 2011