Error in Crystal Report: Could not load file or assembly file. ''

in my project I use visual studio 2010, Crystal report 2010 and Crystal.Reports.2010.Support.Pack.v13.0.5. when I run the code and call the Crystal Report Viewer. this error occurred in my windows application. how can i solve this error in c # win app?

Error:

Could not load file or assembly: /// C: \ Program Files \ SAP BusinessObjects \ Crystal Reports for .NET Framework 4.0 \ Common \ SAP BusinessObjects Enterprise XI 4.0 \ win32_x86 \ dotnet1 \ crdb_adoplus.dll or one of its dependencies. The system cannot find the specified file.

+4
source share
3 answers

I think you need this code, add it to your web.config

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

, google, ( )

EDIT:

, .Net . , - .Net 4 ( .Net 4) - n34_panda

+11

.

App.config (), .

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

app.config , useLegacyV2RuntimeActivationPolicy , .

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

</startup>

, , .

enter image description here

+1

Source: https://habr.com/ru/post/1543647/


All Articles