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 19: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
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,518
1 OriginalGriff 478
2 Manas Bhardwaj 349
3 Tadit Dash 285
4 Damith Weerasinghe 260
0 Sergey Alexandrovich Kryukov 9,575
1 OriginalGriff 5,856
2 Peter Leow 4,405
3 Maciej Los 3,540
4 Abhinav S 3,513


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 1 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid