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.