Lot of people comes across the issue of Crystal Report deployment on production server. When they run the web application with reports embedded in to it, developed using Crystal Reports, it works fine on their machine but when they deploy the same web application on deployment machine, it gives exception as soon as any report is opened.
The problem here is that you have the CR runtime assemblies on your local machine; it's because you have installed VS, and CR runtime comes embedded in VS now. But on the production machine, we just have .NET framework, not the CR runtime.
So in order to make it run on production machine do the following:
- Create a new web setup project for your web application using VS web setup wizard and add your project output to it.
- Add appropriate merge modules (it installs the CR runtime on production server) to the setup project depending on .NET framework and CR version.
When we'll install the web application using the above created setup project, it will start working on production server as well.
Here is a tutorial that will help you do the above steps:
Happy Deployment! J
*CR= Crystal Report
*VS = Visual Studio