Click here to Skip to main content
15,921,577 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am using .net framework 4.0. I want to use chart controls in my applications.

I have added the namespace in my web.config file.

But, still i am getting Error like "Type System.web.UI.Datavisualization.Charting" not defined in top of the aspx code.

Why this will happen...?

HTML
<system.web>
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
      <assemblies>
         <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </compilation>

<httpHandlers>
 <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"/>
  </httpHandlers>
</system.web>
Posted
Updated 27-Dec-11 18:22pm
v2
Comments
AndreaFileccia 19-Apr-12 7:11am    
I have the same problem.

Have you found a solution?

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



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