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

1 solution

Rate this: bad
good
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!
 
—SA
  Permalink  
v2
Comments
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...
 
—SA

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

  Print Answers RSS
0 Marcin Kozub 275
1 OriginalGriff 264
2 Sergey Alexandrovich Kryukov 215
3 Praneet Nadkar 197
4 Richard MacCutchan 182
0 OriginalGriff 8,048
1 Sergey Alexandrovich Kryukov 7,287
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,910


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.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