Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not load file or assembly crdb_adoplus.dll

For the following error:

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.

Is there any way to resolve this error other than through the solution:

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

That solution not work in my application

like image 904
fma3 Avatar asked Jul 06 '11 19:07

fma3


5 Answers

Please use this code. It may be helpful for you.

<startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>

This is slightly different than you. For more details visit this link Crystal Report Viewer

like image 173
Refat Sardar Avatar answered Nov 11 '22 02:11

Refat Sardar


Change the first line to work successfully

After you open a file "App.config" from Solution Explorer

Previous:

<startup> 

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup>

Current:

<startup useLegacyV2RuntimeActivationPolicy="true">

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup>
like image 21
Sherif Hamdy Avatar answered Nov 11 '22 04:11

Sherif Hamdy


Use only

<startup useLegacyV2RuntimeActivationPolicy="true">
</startup>

It works for all frameworks!

like image 5
user3216266 Avatar answered Nov 11 '22 02:11

user3216266


This stuff basically happens, if you have correct setup of SBO (I wish you so:)), that between different components of your SBO SDK there are assemblies with different .NET version. Check if you have some old version of SAP BO SDK installed on your machine too. Hope this helps.

like image 2
Tigran Avatar answered Nov 11 '22 02:11

Tigran


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

<startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0"/>
</startup>
like image 1
yadavr Avatar answered Nov 11 '22 04:11

yadavr