Click here to Skip to main content
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 3:17am
Edited 4-Jan-12 3:23am
Mehdi Gholam237.2K
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)

  Print Answers RSS
0 OriginalGriff 364
1 DineshMaind 95
2 Sergey Alexandrovich Kryukov 94
3 majid torfi 83
4 kbrandwijk 75
0 Zubair MCA 55
1 OriginalGriff 55
2 sankarsan parida 55
3 harshavardhan12345678 45
4 Sandeep Londhe 45

Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 5 Apr 2012
Copyright © CodeProject, 1999-2014
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