If you change your project's target frame work from older versions to .NET 4.0, you may get an error while running crystal reports like this.
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.
To overcome this error,
open the app.config of your startup project and look for <startup> tag. It could be like this.
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
Chagne that to
<startup useLegacyV2RuntimeActivationPolicy="true"><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
Thats it. The issue will be resolved like a magic.
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.
To overcome this error,
open the app.config of your startup project and look for <startup> tag. It could be like this.
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
Chagne that to
<startup useLegacyV2RuntimeActivationPolicy="true"><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
Thats it. The issue will be resolved like a magic.
0 comments:
Post a Comment