Skip to content

Deploying Crystal Reports XI On IIS For Win2003

June 2, 2009

I will create posts at a later date to detail, or at least link to people who have, how to develop start to finish a Crystal Report against a SQL Server back end that can be viewed in an ASP.NET page hosted in IIS.  This post will, instead, focus on the ‘system requirements’ as it pertains to dll’s in order to be able to host such an application/report.  Every time I create one of these and push it to a server that has not been host to such a beast before, I run into the same issue and end up digging for way too long.

At the very least you will need to copy 4 dll files from somewhere (I do so from the GAC on my development machine) into the GAC of the server.  Those files are:

  • CrystalDecisions.CrystalReports.Engine.dll
  • CrystalDecisions.ReportSource.dll
  • CrystalDecisions.Shared.dll
  • CrystalDecisions.Web.dll

With those 4 files installed in the GAC, you will have to make sure the references are added to your web.config file (note: this is done automatically if you drag-and-drop the components onto your webform when designing it… but you don’t do that, right?  😉 ).  If the following code is NOT in web.config, add something similar to the below (noting the version you have if different than mine):

<compilation batch=”false” debug=”false”>
<add assembly=”CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304″ />
<add assembly=”CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304″ />
<add assembly=”CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304″ />

With those files copied into the GAC and those references added to the web.config, your webform with an embedded Crystal Report Viewer should properly render.

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: