Saturday, June 2, 2012

Errors Occurred when load the SAP Crystal Report in runtime

I,m using VS 2010 in 64bit OS machine and using SAP crystal report for reporting.
Problem : When try to load the crystal report in run time of a project, following error was occurred.
  "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\win64_x64\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified. "


Solution : This specific dll is in C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64 location.


1.Create new folder called 'dotnet1' in above location
2.Make a copy of specific dll(crdb_adoplus.dll) in to that folder


After that i got the following error when run the program & try to load a report.


Problem : "Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information."


Solution : Include following configuration setting in to config file that related in main project or solution. (Ex:.exe.config)




   
   

No comments:

Post a Comment