Click here to Skip to main content
11,415,046 members (83,074 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: CrystalReports
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 23-May-12 19:44pm
Edited 23-May-12 19:52pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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>
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

1 in Solution explorer Right click and project
2 select properties
3 select target .net framework 3.5
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 9,200
1 OriginalGriff 7,512
2 Maciej Los 3,710
3 Abhinav S 3,298
4 Peter Leow 3,084


Advertise | Privacy | Mobile
Web04 | 2.8.150427.4 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100