Santry Technology Solutions, Content Management, DotNetNuke, SharePoint Consulting
Register | Login
Wednesday, January 07, 2009

Sections
  
About Us
  
Partners
Downloads
  
 WWWCoder.com Resource Directory

Deploying a Crystal Reports Application to a Remote Server
5/9/2005 11:51:52 AM

A common misconception about deploying a Crystal Reports application written in ASP.NET is that the remote server must have the Crystal Reports .NET server components installed. The only thing to keep in mind is that you must purchase a licensed copy of Crystal Reports...

  By Ben Higgins

A common misconception about deploying a Crystal Reports application written in ASP.NET is that the remote server must have the Crystal Reports .NET server components installed. The only thing to keep in mind is that you must purchase a licensed copy of Crystal Reports from Business Objects (www.businessobjects.com) in order to deploy your application to a remote server. The license for the version that comes shipped with Visual Studio .NET is just for evaluation and only works on the local development machine.

The issue that developers run into is how the Crystal Reports Developer tool is installed on the development machine. When installed, the developer tool installs the server components into the following directory:

C:\Program Files\Common Files\Crystal Decisions\2.5\managed

From there, the components are registered into the local machine's Global Assembly Cache (GAC) located in C:\windows\assembly. If you are using Visual Studio .NET to develop your application, then you reference the Crystal Decision classes from the GAC. This is fine when you run the application on the local machine. But when you deploy the application to the remote server by default you will get an error because the Crystal Decision components are not registered in the remote servers' GAC. Here is how you work around this issue:

For all of the classes your application references you need to go to the above Common Files directory and copy the matching DLL files to your application bin folder. The bin folder is located in the root of your Visual Studio .NET application. Once you have copied the DLLs, remove any old references from your Visual Studio .NET application. You will find this setting in "Solution Explorer" under "References". Right click any "CrystalDecisions.*" reference and select remove. Then right click on "Reference" and select "Add Reference…". Click "Browse", the default directory should be your application's root, double click the bin directory. Select the Crystal Decisions components and click "Open" then "OK". Recompile your application then upload it to the remote application. Make sure you upload all of the contents of the bin folder.

With the steps above you should not have any issues deploying your Crystal Reports application built with Visual Studio .NET. If you are still using classic ASP to generate your Crystal Reports then the components still have to be registered on the server. Either use the Installation CD or extract the components and manually register the components on the web server using regsvr32.exe or a COM+ package. You can find additional support information at http://www.businessobjects.com/support/default.asp.

Ben Higgins is a support specialist with ORCS Web - a company that provides managed hosting services for clients who develop and deploy their applications on Microsoft Windows platforms.


Page Options:
format for printing  Format for Printer
email article  Email Page
add to your favorites   Add to Favorites
How would you rate the quality of this content?
Poor - - Excellent
Comments?
Overall Rating:
Comments Left:
Left on 11/15/2008 4:20:04 AM by Anonymous
Comments: I hope it is not possible to deploy ctystal report in this way As I am try ing to do this...
If any clue plz post it
No ratings available.
Left on 2/5/2008 4:49:27 AM by Anonymous
Comments:
Left on 11/11/2007 7:52:46 PM by Anonymous
Comments: Hello! Good Site! Thanks you! ryccmprqvn
Left on 9/3/2007 3:24:41 AM by Anonymous
Comments: good arti.
Left on 11/7/2006 3:55:40 PM by Anonymous
Comments: I once read that the VSNET 2003 CR license can be carried to the server as long as there are no more than 5 concurrent users on CR, If my clients have to pay an extra-license on this I think they would not use CR at all.
Left on 5/10/2006 3:14:12 AM by Anonymous
Comments: thank you
No ratings available.
Left on 1/30/2006 12:09:43 AM by Anonymous
Comments: I select "Excellent" because I reaaly in need of how we deploy assemblies on GAC....But after reading this i found TWO WAYS to get the same functionality ...
Left on 7/15/2005 10:00:59 AM by Anonymous
Comments: bad news folks - this is just totally incorrect ..

http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=281383
No ratings available.
Left on 6/29/2005 5:50:08 PM by Anonymous
Comments: All you have to do is create a setup project with the Crystal prerequisite set. When you build the setup project it will create an exe specifically for installing Crystal.
No ratings available.
Left on 6/22/2005 10:47:08 AM by Anonymous
Comments: Does this hold true for Crystal Reports XI (3.0). I keep getting a COM error when attempting this with the latest version of Crystal.
Left on 5/24/2005 10:04:03 AM by Anonymous
Comments: I went through the whole process, but kept getting another error that 'CrystalDecisions.Shared' could not be loaded, even though the file is there. Any clues?
No ratings available.
Left on 5/23/2005 8:03:04 PM by Anonymous
Comments: Actually, this article contains some errors.  See comments at http://aspalliance.com.  The CR8 license does not carry over to CR .NET, since CR .NET is not an upgrade.
No ratings available.
Left on 5/19/2005 11:36:32 PM by Anonymous
Comments: This ia a very nice article but i want to know that whether Licence of Crystal Reports 8.0 will work for ASP.Net Crystal Reports application.
Please do write sometthing about this.

Regards,
Harish
  

 Latest Articles
  

 Latest News
  

 

Spotlight
Syndication

 


 


Digg This
 


DotNetNuke Platinum Benefactor

  
 

 Terms Of Use | Privacy Statement
 Copyright 2008 - Santry Technology Solutions, Box 172, Girard, PA 16417, (814) 774-0970