Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using ASP.NET Chart controls.

But,the chart controls will not displaying any property.

Also, it give error like
Type "System.Web.UI.DataVisualization.Charting.Chart" not defined.


I have already added the above dll and namespace.

But, still getting the above problems.

1. chart controls will not displaying any property.
2. Type "System.Web.UI.DataVisualization.Charting.Chart" not defined.

What is the problem...?
Posted
Updated 4-Jan-12 3:23am
v2
Comments
Steve Wellens 4-Jan-12 18:39pm    
Did you add the dll or did you add a 'reference' to the assembly?

1 solution

check your web.config file
under system.webserver>handlers add or check if exists
HTML
<remove name="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" />
    </add>


also under appSettings
HTML
<add key="ChartImageHandler" value="storage=Memory;timeout=30;" />


and under pages>Controls
HTML
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting"
          assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />


finally in system.web>httpHandlers
HTML
<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" /></add>


this should fix it for you
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900