I am using Visual Studio 2010 with .NET 4.0.
I just started using MS graphics. When I execute the project, I get the following error:
The type or namespace name 'DataVisualization' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)
In addition, in my code, this line has a line below it, indicating that the namespace cannot be found:
using System.Web.UI.DataVisualization.Charting;
However, if I go to my local host on a page that has a diagram, it displays fine.
Another strange thing: when I compile (CTRL + SHIFT + B), I get 3 compilation errors on the first compilation, then when I do it again, right after that, I get 16.
Despite the fact that I get compilation errors above, I can still run the application and everything works fine, but it is really annoying that it will not compile, so I have to do something wrong.
Any help with this would be greatly appreciated.
Thanks.
domaa source share