Crystal Reports & Framework 4 (Could not load file or assembly crdb_adoplus.dll)

If you upgrade your project to .NET Framework 4 or for any reason you get a mysterious error like the one below:

“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.”

Try inserting the code below at your app.config or web.config file:

1
2
3
<startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0"/>
</startup>
<startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0"/>
</startup>

 

It seems that microsoft changed the binding procedure and this setting changes that.
posted @ 2013-05-25 13:07  zyip  阅读(231)  评论(0编辑  收藏  举报