Could not load file or assembly crdb_adoplus.dll

2019-01-21 22:09发布

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

8条回答
Luminary・发光体
2楼-- · 2019-01-21 22:37

Follow steps: Right click on project then click properties ->compile ->Advance Compile Option -> click Target framework and select .Net Framework 3.5 -> Now Click OK

Thats the simple solution.

查看更多
冷血范
3楼-- · 2019-01-21 22:47

worked fine for me for all configs:MSIL, x64 and x86 bit even works just fine.

查看更多
男人必须洒脱
4楼-- · 2019-01-21 22:51

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

<startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0"/>
</startup>
查看更多
beautiful°
5楼-- · 2019-01-21 22:52

When facing this issue in ASP.Net application, check the application pool of the application in IIS. Change the Application pool to .Net 4.0 from .Net 2.0.

It will fix the issue.

查看更多
Animai°情兽
6楼-- · 2019-01-21 22:56

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

查看更多
在下西门庆
7楼-- · 2019-01-21 22:56

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>
查看更多
登录 后发表回答