Quick question here, I'm getting a warning in my page directives saying that this namespace System.Web.UI.DataVisualization.Charting isn't found. I went to add a reference to the project so I could import the namespace and this namespace does not exist
in the .NET tab. What do I need to do to get this working? Also, even if I add this to my Global Assembly Cache, that won't do anything for the web host web server that my website is publically on.
Any guidance on this? How to get it on my local machine as well as understanding that it'll work on the actual web server? Thanks in advance! :)
There is a System.Web.DataVisualization assembly, but why would System.Web.UI.DataVisualization.Charting want to be referenced? It sounds as if they SHOULD have the same root namespace(s), no???
Surfer513
Member
649 Points
362 Posts
Unrecognized namespace System.Web.UI.DataVisualization.Charting
Feb 10, 2011 12:05 AM|LINK
Quick question here, I'm getting a warning in my page directives saying that this namespace System.Web.UI.DataVisualization.Charting isn't found. I went to add a reference to the project so I could import the namespace and this namespace does not exist in the .NET tab. What do I need to do to get this working? Also, even if I add this to my Global Assembly Cache, that won't do anything for the web host web server that my website is publically on.
Any guidance on this? How to get it on my local machine as well as understanding that it'll work on the actual web server? Thanks in advance! :)
krisrajz
Participant
1845 Points
541 Posts
Re: Unrecognized namespace System.Web.UI.DataVisualization.Charting
Feb 10, 2011 03:55 AM|LINK
Seems like you are missing it
Download it from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c
and check out
Raj
Remember to click Mark as Answer on the post that helps to others.
sidkashyap
Member
124 Points
39 Posts
Re: Unrecognized namespace System.Web.UI.DataVisualization.Charting
Feb 10, 2011 08:08 AM|LINK
There are two things you need to check
1) you must have installed the chart control if you are .NET version 3.5, If you are using .NET version 4 its not required.
2) check your web.config for "<add path="ChartImg.axd" verb="GET,HEAD,POST" etc ... if its not there .. you need to include that
Surfer513
Member
649 Points
362 Posts
Re: Unrecognized namespace System.Web.UI.DataVisualization.Charting
Feb 10, 2011 12:55 PM|LINK
I am using .NET 4, and I also do have that <add /> tag in my web.config. Any other ideas?
Surfer513
Member
649 Points
362 Posts
Re: Unrecognized namespace System.Web.UI.DataVisualization.Charting
Feb 10, 2011 08:57 PM|LINK
There is a System.Web.DataVisualization assembly, but why would System.Web.UI.DataVisualization.Charting want to be referenced? It sounds as if they SHOULD have the same root namespace(s), no???
Qin Dian Tan...
All-Star
113532 Points
12480 Posts
Microsoft
Re: Unrecognized namespace System.Web.UI.DataVisualization.Charting
Feb 15, 2011 01:50 AM|LINK
Hi Surfer513,
If you use .NET Framework 4.0, just using System.Web.UI.DataVisualization.Charting namespace. You don't need to do anything.
http://msdn.microsoft.com/en-us/library/system.web.ui.datavisualization.charting.aspx
Thanks,
If you have any feedback about my replies, please contactmsdnmg@microsoft.com.
Microsoft One Code Framework