Display Images and Chart in Crystal Report after diployment

Some time Chart(in crystal report) doesn’t display after the deployment on the server, although at the design time it shows correctly. Today I face the same problem: my crystal report is showing Pie chart correctly on my local machine but not on the server. You can face same problem when the crystal report doesn’t show the image(s).

So as per my workaround I found the solution to Show chart and Images in Crystal Report after deployment or publish on the server.

we need to add following HttpImageHandler to view Images in Crystal Report:

<system.web>
  <httpHandlers>
      <add verb="GET" path="CrystalImageHandler.aspx" 
                       type="CrystalDecisions.Web.CrystalImageHandler, 
                       CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral,
                       PublicKeyToken=692fbea5521e1304"/>
  </httpHandlers>
</system.web>

and

<system.webServer>
    <handlers>
      <add name="CrystalImageHandler.aspx_GET" verb="GET" 
                path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler,
                CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, 
                PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/>
    </handlers>
    <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>

After adding these you will see your chart or Images in crystal report.

Author: Ankur

Have worked primarily in the domain of Calling, CRM and direct advertisers services. My technological forte is Microsoft Technologies especially Dot Net (Visual Studio 2003, 2005, 2008, 2010 and 2012) and Microsoft SQL Server 2000,2005 and 2008 R2. My Area of Expertise is in C#. Net, VB.Net, MS-SQL Server, ASP. Net, Silverlight, HTML, XML, Crystal Report, Active Reports, Infragistics, Component Art, ComponeOne, Lead Tools etc.