No http handler was found for request type 'GET'

asp.net 运用统计图表的时候,在本地运行,没有问题,发布到服务器上的IIS后,就报这个错误,具体错误 看图

这个图片真恶心,网上找了下,资料不多,但是还是有个能真正解决问题的,

解决方法是,在web.config中添加一个与System.Web同级的节点

  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="ChartImg" verb="*" path="ChartImg.axd"  type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"  />
     
      <add name="ReportViewer" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler,Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </handlers>
  </system.webServer>

附上解决这个问题的原文地址

http://stackoverflow.com/questions/2117102/mscharts-no-http-handler-was-found-for-request-type-get-error

原文地址:https://www.cnblogs.com/LJP-JumpAndFly/p/5124268.html