Images and Parameters Broken in CrystalReportViewer

2009 May 28
by echostorm

 

I hate Crystal Reports.  I was on the verge of a nervous breakdown today after launching a well tested app and finding my reportviewer with broken images or with a mysterious javascript error saying Object Expected.

CropperCapture[2]

The deal is that Crystal requires the aspnet_client folder that IIS creates in your Default Web Site and is accessable to all the virtual folders that live there.

However if you try to deploy your site to a new website on the server to use a different port or subdomain using host headers you won’t have access to the aspnet_client goodness and your reports will be borked.

 CropperCapture[1]

You can either copy the folder into your application folder or create a virtual folder that points to the aspnet_client folder in the Default site.

CropperCapture[4]

and you’re golden.

CropperCapture[3]

I owe a co-worker with a good memory for putting me on the right scent to figure this out.  Hope this helps someone avoid the anguish this caused me.

No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS