Deploying Visual Studio.net + 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 CR.net redistributable package): cr_net_2005_mergemodules_mlb_x86.zip
  2. Extract it to get this file (merge module):
    CrystalReportsRedist2005_x86.msm
  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?

11 Comments

  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
    vishnu

  2. Worked great! Many Thanks.

  3. i have aproblem in deploying vb.net application with crystal reports.
    i have created an application with vb.net 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

  4. 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?

  5. You probably missed Step 9. Can you re-check that? Also check to make sure you get the 'extra files' mentioned in Step 10.

  6. and what can i do if i have vb.net 2003?

  7. you can install crystal reports using

    CRRedist2005_x86.msi

    or use merge modules.
    http://vb.net-informations.com/crystal-report/vb….

  8. 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:inetpubwwwrootmywebapp. 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?

    Thanks,
    Faisal

  9. Concise and helpful. Thanks a lot!

  10. 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…

  11. 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

Leave a Reply

Your email address will not be published.

*

© 2017 recluze

Theme by Anders NorénUp ↑