Click here to Skip to main content
16,012,759 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
I have developed a sales program for our office which works fabulously on my machine.  In the properties of the project in the references section I have tagged CrystalDecisions.CrystalReports.Engine, CrystalDecisions.ReportSource, CrystalDecisions.Shared, CrystalDecisions.Windows.Forms as "copy local".  I published the deployment package to our server and have the ability to install this package on another computer.  HOWEVER, after the package is loaded, everything works great except for the Crystal Report.  It doesn't appear that the references have been copied to the local machine and the the user gets the following error when trying to view or print a report, "Could not load file or assembly "CrystalDecisions.Windows.Forms, Version=10.5.3700, Culture-neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies.  The system cannot find the file specified."

What in blazes have I left out?  How is this fixed?
Posted

have you added prerequisites in setup?
windows installer,
crystal report,
.net frame work 2.0 and upward if you used that

If it's giving error in report then check it's product-xml file in 'bootstrapper' folder from where your crystal report's installation package is binding to your setup(prerequisites). In that xml you will get dependency property, check that and include that dependency in setup

eg. path : C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5\product.xml

Happy Coding!
:)
 
Share this answer
 
v2
Comments
Ariel Riyo 31-Jul-12 21:58pm    
yes i agree to this solution. maybe you set the location of the crystal report file on your machine only that other machine cant locate it. :D
Aarti Meswania 1-Aug-12 0:37am    
thanks you are agree with my solution.
we hope it will also useful to solve AnuradhaJayalath's problem.
I have given example path she have to find this on their machine it can be vary with different machines, that's why I have written path with tag 'eg.'.
In second paragraph I have mentioned some details regarding file-path.
You can download the Crystal Reports 2008 runtime package for .net Framework from the following link, and then install it on the target machine (please read the license carefully).

Crystal Reports 2008 Runtime Package for the .NET Framework
https://websmp107.sap-ag.de/~SAPIDP/002006825000000234912001E
 
Share this answer
 
Comments
AmIWrong 7-Apr-17 3:33am    
Hello! I know this is not the right way to do things, but I badly needed help. I need a step by step guide in publishing a vb.net 2012 project with crystal report. Please help me.

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