I am using VS2010 and .NET 4.0 with WPF.
After installation SAP Crystal Report successfully,i integrated Report viewer in my WPF application.I am using a list to set Datasource for showing report.Everything works fine but when i run my solution then every time an error has occurred like this.
“System.IO.FileNotFoundException was unhandled Message=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.”
This problem wasted my half day developing.After completion all google search and SAP forum at last get a solution.
To solve this add this code in your app.config file.
Here is the code
<startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup>
If you have any query about this topic please leave a comment.