Friday 5 September 2008

Crystal Reports problems during deploying a .NET windows application

Today, I ran into a problem deploying a .NET windows application that uses Crystal Reports. I'm developing with VS2008 and Crystal Reports is a part of the VS2008 installation.

I build a .NET windows application (with a couple of crystal reports in it). I created a standard setup project with a merge module of crystal reports in it. So far so good.

Installation directly on a PC seems to work fine, but installation via (e.g.) RDC (remote desktop connection) failed. You got error like:

Module C:\Program Files\Common Files\Business Objects\2.7\bin\ExportModeller.dll failed to register. HRESULT -214701895. Contact your support personnel.

After some research on the internet, if found out to create the setup project a little bit different. What do you need to do:

  • Remove the Crystal reports merge module from the setup project.
  • Open the property page of your setup project (right-click and select Properties)
  • Click on the button prerequisites.
  • Be sure that Create setup program to install prerequisite components has been checked
  • Check the Crystal Reports Basic for Visual Studio 2008 (x86, x64) record
  • At Specify the install location for prerequisites choose Download prerequisites from the same location as my application.
    • In this scenario, the setup for Crystal Reports is not included in your application msi, but present as a seperate msi, available in the same dir as your application setup (note: placed in a sub dir).
    • When you start the setup of your application, it will check the prerequisites and in case no crystal reports is installed, it will do it first before installation of your own application. Slightly different, but it work on RDCs too.

8 comments:

Anonymous said...

I tryed to do that and any time I try to run the setup.exe I get "The following package could not be found: "C:\CrystalReports10_5\CRRedist2008_x86.msi" grrr . Any ideas ?

Rob said...

Sorry for the late reply, but I am on holiday now. I'll be back on monday.
However, I saw your message but I am not sure what the problem is. Do you have the file CRRedist2008_x86.msi somewhere on an other location on your harddrive?

Rob said...

Not sure if you solved it already, but I was wondering which version of Visual Studio you are using.

Unknown said...

i tryed to install octro talk on pc, but when i trying to install iam getting the message "module C:\windiws\system32\octrograbber.dll faild to register.hresult-214701895" how to fix this problem

Rob said...

Hi jeseel,

If you can give some more information, that would be helpfull. I posted this blogpost, because I ran into this kind of problem when deploying Crystal Reports using RDC (Remote Desktop Connection).

Shujaat Ali Kulbi said...

Thnx Robje,
U've been a great help.

lena said...
This comment has been removed by the author.
klaus said...

I recently had to get an Emergency passport, which was quite the experience. I was in a foreign country and lost my access, which was incredibly stressful. Luckily, the local embassy was incredibly helpful and guided me through the process. It's amazing how efficiently they can issue an emergency passport when you're in a challenging situation. It did cost a bit extra, but the peace of mind it brought was worth every penny. Kudos to the embassy staff for their professionalism and kindness during a stressful time!