Error resolving error for Chartimg.axd executing child request when ASP.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.