Fix error message "Chartimg.axd Executing a child request" when the chart control is running in ASP.

Source: Internet
Author: User
Tags connectionstrings

The first error indicates that you need to save the path and so on, so guess is not a configuration file error. Look at the configuration file only the connection string is configured. Later turned the vs2010 off, reopened, created a new page, re-added the space, and ran it. Then look at the configuration file, found a lot more things. What is not configured specifically is as follows:

<?xml version="1.0"?><!--For more information about how to configure an ASP. NET application, go to http://go.microsoft.com/fwlink/?linkid=169433--><configuration> <appSettings> <add key="Chartimagehandler"Value="storage=file;timeout=20;dir=c:\tempimagefiles\;"/> </appSettings> <system.webServer> "Chartimagehandler"/> <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"/> "testconnectionstring"connectionstring="Data Source=.;i Nitial catalog=test; User Id=sa; password=******"Providername="System.Data.SqlClient"/> </connectionStrings> <system.web> "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"/> "ASP" namespace="System.Web.UI.DataVisualization.Charting"Assembly="System.Web.DataVisualization, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/> </controls> </pages> <compilation debug="true"targetframework="4.0"> <assemblies> <add assembly="System.Web.DataVisualization, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/></assemblies></compilation> </system.web></configuration>

Finally, it's ready to run.

Fix error message "Chartimg.axd Executing a child request" when the chart control is running in 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.