Click here to Skip to main content
12,882,397 members (25,657 online)
Rate this:
Please Sign up or sign in to vote.
See more: CrystalReports
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:44pm
Updated 23-May-12 18:52pm
Rate this: bad
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.

Rohan Panchal 1-Aug-16 14:23pm
I am using in desktop. its not working
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Add "useLegacyV2RuntimeActivationPolicy" to the project "app.config" file as below.
<startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
Ruban V.
Member 12231778 28-Dec-15 4:56am really works......
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

changing in app.config
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>-->
<startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
Rate this: bad
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

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170422.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2017
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