Today, when doing a mschart about MVC, I thought it was a simple thing, after the data are all tied up, full of thought OK, an error in the operation "ASP. Error for Chartimg.axd to execute child request ", Tangled ~ ~ After searching the Internet for a solution, and then combining their own, and finally made a small summary:
First, in the vs2008, you need to follow the following steps to configure:
1, <pages controlrenderingcompatibilityversion= "3.5" enableeventvalidation= "false"
Clientidmode= "Autoid" >
<controls>
<add tagprefix= "asp" namespace= "System.Web.UI.DataVisualization.Charting"
Assembly= "System.Web.DataVisualization, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>
</controls>
</pages>
2. Increase in <assemblies> (this should be generated automatically)
<add assembly= "System.Web.DataVisualization, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />
3. Add in <syste,=m.web>
<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"/>
4. Add in <appSettings>
<add key= "Chartimagehandler" value= "storage=file;timeout=20;dir=c:\tempimagefiles\;"/>
Second, if you are in VS2010 4.0, you just need to follow the following configuration in Web. config:
Add in <system.web>:
<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"/>
Like <assemblies>
<add assembly= "System.Web.DataVisualization, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" /></assemblies>
This will be generated automatically, so it's easier than vs2008.
As for the use of Mscchart, the feeling is the same as the normal use of those controls, this does not make a specific introduction.
Error resolving error for Chartimg.axd executing child request when ASP.