Deploying ASP.NET Web Application with Crystal Reports

I have devoted lot of time to investigate why i am unable to use crystal reports when i am deploying my Asp.net web application , and at the end i conclude some of the initial steps which  need to be done before deploying your ASP.NET web application for crystal report.

First and for most if you are using virtual directories into your hosting environment  then:
  • Copy the aspnet_Client Folder into your root folder "c:\inetpub\wwwroot\aspnet_client\"
  • Secondly right click on your rpt file and go to properties.

1.1 Build Action as "Content".

1.2 Copy to Output Directory as "Copy Always".

2. Check your path to the .rpt file Server.MapPath("Your path");

e.g.  Server.MapPath("~/Reports/MyReport.rpt")

Then you would be able to see your reports works fine on hosting environment as they were working locally .
 
Ask your hosting provider if they do not enable crystal report for you as well.
Happy Coding.
 
Danish Habib