Click here to Skip to main content
15,887,880 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello every body ,

i have a problem with Crystal report hope u help me.

i make a project and this project have Reporting , i use Crystal report for this.

but when i click on report button this vs show this error :


Could not load file or assembly 'file:///C:\Program Files (x86)\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 file specified.

hope help me.
Posted
Updated 28-Jun-18 8:24am

just add this lines in app.config...
<configuration>
  <startup uselegacyv2runtimeactivationpolicy="true">
    <supportedruntime version="v4.0" sku=".NETFramework,Version=v4.0" />
  </startup>
  <runtime>
    <generatepublisherevidence enabled="false" />
  </runtime>
</configuration>
 
Share this answer
 
Comments
Prashant0302k4 1-Aug-12 13:10pm    
Perfect Solution, Thanks.
uness_126 21-Aug-12 13:09pm    
Hi, I got this error and it will not go away. Is there anything I
XML
<startup uselegacyv2runtimeactivationpolicy="true">
   <supportedruntime version="v4.0" sku=".NETFramework,Version=v4.0" />
 </startup>
 
Share this answer
 
thank you my friend but your link dosnt't work for me... i think they lost , please give me another way.
 
Share this answer
 
v2
 I fixed the problem by changing in app.config

from:

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

to:

<startup useLegacyV2RuntimeActivationPolicy="true">

    <supportedRuntime version="v4.0"/>

  </startup>
 
Share this answer
 
Comments
CHill60 28-Jun-18 19:48pm    
Solutions posted 6 years ago suggested changing app.config.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900