Click here to Skip to main content
11,433,170 members (61,659 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Chart ASP.NET4.0
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 4-Jan-12 4:17am
Edited 4-Jan-12 4:23am
Mehdi Gholam271.9K
Steve Wellens at 4-Jan-12 18:39pm
Did you add the dll or did you add a 'reference' to the assembly?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

check your web.config file
under system.webserver>handlers add or check if exists
<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=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

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

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

finally in system.web>httpHandlers
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
        validate="false" /></add>

this should fix it for you

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

Advertise | Privacy | Mobile
Web01 | 2.8.150428.2 | Last Updated 5 Apr 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100