adsense

Monday, April 19, 2010

error executing child request for chartimg.axd

I came across the above error when trying to get started with the ASP.net chart controls and changing the following entry in web.config solved my issue.

  <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

The simple change you have to make to get the chart to work is to add "POST" to the allowed verbs:


 <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

Cheers
Happy Coding,
Samitha 

No comments:

Post a Comment