Symptom
Addin For Crystal Reports 2011 built for .NET framework 4.0 fails to load, this worked in previous builds
Environment
Crystal Reports 2011
Visual Studio 2010
Cause
Crystal Reports 2011 Designer has a dependency on .NET 2.0 Framework
Resolution
Create a crw32.exe.config file and paste in the following:
<?xml version ="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true" >
<supportedRuntime version="v4.0" />
</startup>
</configuration>
Save this to file to where crw32.exe is located:
C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86
Start up the Report Designer and open the View, Tool Bars menu and check on the External Command.
What this does is tell crw32.exe to use 4.0 framework. Found this MS kbase article:
According to MSDN: http://msdn.microsoft.com/en-us/library/w4atty68.aspx
If your application is built with the .NET Framework 4 but has a dependency on a mixed-mode assembly built with an earlier version of the .NET Framework, it is not sufficient to specify the .NET Framework 4 in the list of supported runtimes. In addition, in the <startup> element in your configuration file, you must set the useLegacyV2RuntimeActivationPolicy attribute to true.
Keywords
Crystal Reports 2011, addins, .NET framework 4.0 , KBA , BI-RA , Reporting, analysis, and dashboards , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem