Deploying Visual + Crystal Reports Projects

If you’ve been having trouble with deployment of Visual Studio .net 2005 (C# or VB) applications which use Crystal Reports, rest assured.  You’re not alone. You can find many posts and blogs saying you should add the merge modules but if you’re having problems getting the setup to work, here’s the solution:

  1. First, search for this file (the redistributable package):
  2. Extract it to get this file (merge module):
  3. Create a new “Setup Project” in your solution. (I’m assuming you’re comfortable with this stuff.)
  4. Right-click on the setup project and Add->Merge Modules.
  5. Browse to give the extracted merge module. It should be added to your setup project.
  6. Now, right-click on setup project again and click on Properties.
  7. In the properties dialog, click on Prerequisites.
  8. Check .Net framework, Crystal Reports and Microsoft Data Access Components (MDAC)
  9. Also, select Download from the Same Location as Project Setup (or something to that effect…. I don’t have VS.Net in front of me right now).
  10. Build the setup project and see the extra files there!
  11. Any Questions?

13 thoughts on “Deploying Visual + Crystal Reports Projects

  1. thanks for such a nice tutorial.
    i have one problem though.. i am trying to deploy VS .net 2005 CR Project in a web application. i cannot add a setup project in the solution.
    i created a seperate setup project and that worked.
    thanks a lot again

  2. i have aproblem in deploying application with crystal reports.
    i have created an application with 2005 and added crystal reports created with crystal reports 11 to the solution but it seems that the reports are converted to version 10.2 when i added them to the soultion ..but the reports are running well on localhost..
    the problem is when i deployed the project..
    it gives the error
    “The located assembly’s manifest definition does not match the assembly reference. ”
    thanks in advance

  3. I have not been able to create a deployment that works. Downloaded the latest CR for VS 2005 and recompiled. Downloaded the latest CrystalReportsRedist2005__x86.msm and included in my project. Checked the prerequisites. However after installing on the target machine, the program can’t load CrystalDecisions.CrystalReports.Engine, Version 10.5.3700.0 or one of its dependencies.
    What have I missed?

  4. Thanks for the tutorial; works well. I am deploying a web application and I have successfully created a setup project which installs the merge modules and my web application. I just have a question, by default all the web files are installed under the default web-site under c:\inetpub\wwwroot\mywebapp. However, during installation, I would like to give an option to the user to change the folder where these files are getting installed and create a Virtual Directory under IIS which will point to that folder. How can I do this?


  5. I was able to create the set up files and got some extra files also. I tried to install the setup file created it said its unable to load the report…the device is not ready …and list of asseblies like mscrolib.dll…etc..
    Please help…

  6. I followed all steps but I still got error syaing “System.Exception: Load report failed. —> System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.” I spend a lot of time to solve this but until now nothing happened.
    I’m using VB.Net 2005 and SQL Server 2005.
    when after I install and use Crystal Report Viewer I got that error.

    Any help please. I really need this to finished.

  7. I cannot fix my project
    Please help me,
    I deploy my project with crystal report, I use Visual Studio 2008

    Error: load file crystalreport failed

    Give me solution please

Comments are closed.