Thursday, June 20, 2013

Could not load file or assembly error in VS 2010 and CR






when u received this kind of 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."


Solution: 
  1. First, set your framework to 4.0 full, not the client. CR requires access to the full framework.

  2. Then add this to your app.config:
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
 
try to add this to your .config file (usually app.config)


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


PS: don't forget to remove extra space after "<" because blogger need the extra space so it can display correctly

0 comments:

Post a Comment