Click here to Skip to main content
12,947,250 members (49,175 online)
Rate this:
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 19: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 1-Jan-13 3:12am
How to add Reference to the assembly...Please help THANKS
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
Top Experts
Last 24hrsThis month
OriginalGriff 5,059
CHill60 3,235
Maciej Los 2,538
Jochen Arndt 1,935
ppolymorphe 1,795

Advertise | Privacy | Mobile
Web01 | 2.8.170518.1 | Last Updated 1 Jan 2013
Copyright © CodeProject, 1999-2017
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