Click here to Skip to main content
Sign Up to vote bad
good
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 - 18:44
Edited 23 May '12 - 18:52


4 solutions

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  
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  
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  
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
Your Filters
Interested
Ignored
     
0 OriginalGriff 300
1 Slacker007 240
2 Aarti Meswania 210
3 Ron Beyer 200
4 Mahesh Bailwal 186
0 Sergey Alexandrovich Kryukov 8,598
1 OriginalGriff 7,024
2 CPallini 3,668
3 Rohan Leuva 3,011
4 Maciej Los 2,343


Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid