Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
Hi When I use of crystal report (sap 13) and .netframework 4 in my application(c#-VS2010) I will be faces with this error :
Could not load file or assembly 'file:///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 file specified.

But when I choose .NetFramework 3.5 , it works fine.

Thanks very much
Posted
Updated 23-May-12 18:52pm
v2

This has to do with your sql connection provider in the report. I remember I had something similar sometime back. The way i fixed it is:

Take a backup of your original report before you do this.

1) Open report
2) Field Explorer --> Database fields
3) Right click and select Set Datasource connection.
3) Add a New connection and Select OLE DB provider as SQL Native Client 10.0
4) replace existing connection with new one.
5) Save the report and Click Verify Database.
6) Delete old connection.

Then try.

If that doesnt fix it tell me. Infact either ways tell me.

Thanks
 
Share this answer
 
Comments
Rohan Panchal 1-Aug-16 14:23pm    
I am using in desktop. its not working
XML
Add "useLegacyV2RuntimeActivationPolicy" to the project "app.config" file as below.

   <code>
<startup useLegacyV2RuntimeActivationPolicy="true">

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

    </startup>
</code>

Regards,

Ruban V.
 
Share this answer
 
Comments
Member 12231778 28-Dec-15 4:56am    
thankssss....it really works......
XML
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
 
1 in Solution explorer Right click and project
2 select properties
3 select target .net framework 3.5
 
Share this answer
 

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