Click here to Skip to main content
15,896,348 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
am working on asp.net charts.

am getting a errror...please help

The type or namespace name 'charts' could not be found (are you missing a using directive or an assembly reference?)

already I have used this below name space....still its getting a problem.

using System.Web.UI.DataVisualization.Charting;


Please help, Thanks in ADVANCE.
Posted

1 solution

What do you mean "have namespace". Using directive does not add anything. Read about it: it just introduces the abbreviated naming for the types. Types are not "placed" in a namespace, they reside in an assembly, which is a central object of .NET. You probably did not add a reference to this assembly. Use "Add Reference".

By the way, if, by some chance, you are not quite sure what an assembly is and not confident about how to create and use them, you should stop doing visualization, developing UI, ADO.NET application but should practice working with assemblies until you know perfectly how to do it. If you skip it, you will be just wasting your time. And this is easy enough.

Happy New Year!

—SA
 
Share this answer
 
v2
Comments
Software Engineer 892 1-Jan-13 3:12am    
How to add Reference to the assembly...Please help THANKS
Sergey Alexandrovich Kryukov 1-Jan-13 3:36am    
I just told you: "Add reference". If you use Visual Studio, there is a node of the project "References", use context menu on this node. All compilers have a command line parameter for the referenced assemblies...

Then I have another note. Are you using Visual Studio? Are you trying to create UI before you learn your instrument, or at least look around at what you have? Never waste too much time on trial-and-error...

—SA

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