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.