title: ASP.NET Charting Control not working on production server
body: <p>I have an application that relies heavily on charting and currently the charts will work in the ASP.Net Development Server, but when I try to publish out to my server (Win 2008 Server R2, IIS 7), the charts do not show up.  </p>
  
  <p>Using Firebug, I can see that the call to ChartImg.axd returns a 404, and all I get is a blank image holder in IE, or nothing in Firefox.  I've searched for about 3 or 4 hours so far, and have tried just about everything recommended, but nothing seems to be working.</p>
  
  <p>I would like to use memory/HttpImageHandler, instead of the ImageLocation configuration.</p>
  
  <p>My Web.Config</p>
  
  <pre><code>    &lt;appSettings&gt;
      &lt;!--&lt;add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" /&gt;--&gt;
      &lt;add key="ChartImageHandler" value="storage=memory;timeout=20;deleteAfterServicing=false" /&gt;
    &lt;/appSettings&gt;
    &lt;system.webServer&gt;
      &lt;handlers&gt;
        &lt;remove name="ChartImageHandler" /&gt;
        &lt;add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST"
          path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /&gt;
      &lt;/handlers&gt;
    &lt;/system.webServer&gt;
    &lt;system.web&gt;
      &lt;httpHandlers&gt;
        &lt;add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
          validate="false" /&gt;
      &lt;/httpHandlers&gt;
      &lt;pages&gt;
        &lt;controls&gt;
          &lt;add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting"
            assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /&gt;
        &lt;/controls&gt;
      &lt;/pages&gt;
      &lt;compilation debug="true" targetFramework="4.0"&gt;
        &lt;assemblies&gt;
          &lt;add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
        &lt;/assemblies&gt;
      &lt;/compilation&gt;
      &lt;customErrors mode="Off"/&gt;
    &lt;/system.web&gt;
  </code></pre>
  
  <p>Does anyone have any ideas where I'm going wrong to keep this from working on my server?</p>