Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
am working on 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 31-Dec-12 20:56pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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!
Software Engineer 892 at 1-Jan-13 3:12am
How to add Reference to the assembly...Please help THANKS
Sergey Alexandrovich Kryukov at 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...

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 305
1 OriginalGriff 225
2 Kornfeld Eliyahu Peter 130
3 DamithSL 110
4 Peter Leow 95
0 OriginalGriff 7,355
1 DamithSL 5,199
2 Sergey Alexandrovich Kryukov 4,942
3 Maciej Los 4,906
4 Kornfeld Eliyahu Peter 4,514

Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 1 Jan 2013
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