Exception with crystal reports

I am developing application which uses SAP Crystal Reports for reporting with Visual Studio 2013 Professional. I downloaded and install package from SAP site, install that. Report is prepared using wizard (this works correctly). Problem is if I following step in source code:


myDataSet is filled with required data. Displayed error is:

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

Additional information: Could not load file or assembly 'file:///C:\Program Files (x86)\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.

During installation folder dotnet1 were not created. There is only folder dotnet. Do somebody know how can be this problem resolved?

Thank you.


I had the exact same problem. My solution was to add this xml to the app.config file inside the <configuration> level:

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

See also:

<startup useLegacyV2RuntimeActivationPolicy="true">

Due to mixed mode assemblies has changed this problem will occur so it is recommended to you use above code into app.config file.

you have use below code in app.config and also have to set .net profile 4 client to .net profile 4 or 4.5 in project property.

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

All above solution not working in my project and application goes in break mode. i solve this problem by adding following lines in app.config inside the configuration.

<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />

Need Your Help

Replay attacks for HTTPS requests

https security

Let's say a security tester uses a proxy, say Fiddler, and records an HTTPS request using the administrator's credentials-- on replay of the entire request (including session and auth cookies) the

How do I turn the system volume overlay back on after using MPVolumeView?

iphone ios media-player

I'm building an audio player for a non-native sound format. The application's hierarchy is based on the iPod.app. It has a number of UITableView's and one UIView (TrackView) that uses an MPVolumeVi...