title: Displaying images in Asp.net 4.0 Crystal report
body: <p>I am migrating a .net 3.5 ASP.net crystal report application to 4.0 and I am unable to get the reports to display with images.</p>
  
  <p>Leaving the web.config file unchanged with the httphandlers and handlers sections as shown below: </p>
  
  <pre><code>    &lt;httpHandlers&gt;
        &lt;add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" /&gt;
      &lt;/httpHandlers&gt;
    &lt;/system.web&gt;
  ...
  &lt;system.webServer&gt;
      &lt;validation validateIntegratedModeConfiguration="false" /&gt;
      &lt;handlers&gt;      
        &lt;add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode" /&gt;
      &lt;/handlers&gt;
  </code></pre>
  
  <p>results in:</p>
  
  <blockquote>
    <p><strong>HTTP Error 500.19 - Internal Server Error</strong></p>
    
    <p>Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'CrystalImageHandler.aspx_GET'</p>
  </blockquote>
  
  <p>Removing the handlers sections from the web.config file successfully displays the report, but without images.</p>
  
  <p>I am concerned about upgrading the report viewer version as I don't see a clear way to redistribute the crystal viewer 13 in the time frame we have (compared with the version 10.5 that we have used successfully for the last few years).
  Has anyone had any experience with this? How can I change the web.config file to show reports and show images?</p>
  
  <p>Thanks</p>