Click here to Skip to main content
15,910,980 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all
i have crystal report in vs2010, then i want to show in a form application with crystal report viewer.but an error like this will show:

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.

what it means?!
thanks
Posted

1 solution

Is this message something you are getting on the development machine? Or is this a different machine? If it's a different machine you need to make sure THAT machine has crystal reports installed.

Also, from the win32_x86 part of the message, it looks like it's looking for crystal reports for 32 bit. You'll need to make sure that the crystal reports you have installed is also for 32 bit. If the computer is 64 bit, it may have installed crystal for 64 bit and therefore can't find the right dll. This can happen if your application is set to target a 32 bit CPU.


---- Edit ----
I googled the exact error message because I know I'd gotten this same issue a few months ago...
It actually has to do with .Net 4 framework. You need to add a bit of xml to your app config:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
<startup/>

Here is the link to the forum that helped me:
SAP Forum[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900