Click here to Skip to main content
12,512,439 members (72,582 online)
Rate this:
Please Sign up or sign in to vote.
See more: Chart ASP.NET4
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 3:17am
Updated 4-Jan-12 3:23am
Mehdi Gholam323.6K
Steve Wellens 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160929.1 | Last Updated 5 Apr 2012
Copyright © CodeProject, 1999-2016
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