|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
System.Management not foundI am hoping this is something simple, but I am at a total loss to figure out what it is. In a C# application I am writing, the following is my "using" header block: using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Management; using System.Management.Instrumentation; Everything is found just fine, until I get to System.Management and System.Management.Instrumentation. These are not found and the error "namespace Management not found in namespace System" is thrown. Looking at the installed documentation on machine (.NET SDK documentation), there *does* exist a System.Management. Since this is static documetnation on my machine, and came with the .NET libraries, my first assumption is that System.Management should be there. Anyway have any ideas of how ot approach this? I am currently downloading the newest verision of the .NET SDK, but would like to figure out what the heck is going on, in case the upgrade does not solve the problem. -- lucas <sturn***@gmail.com> wrote in message
news:1155051470.673897.272250@75g2000cwc.googlegroups.com... You need to add a Reference to System.Management.> Everything is found just fine, until I get to System.Management and > System.Management.Instrumentation. These are not found and the error > "namespace Management not found in namespace System" is thrown. -- Alan Alan Pretre wrote:
> <sturn***@gmail.com> wrote in message I did a search on my machine for System.Management.dll and got a hit.> news:1155051470.673897.272250@75g2000cwc.googlegroups.com... > > Everything is found just fine, until I get to System.Management and > > System.Management.Instrumentation. These are not found and the error > > "namespace Management not found in namespace System" is thrown. > > You need to add a Reference to System.Management. > > -- Alan I added this path to the Project Properties -> Reference Paths but this does not seem to resolve my problem. The hit I got was to C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 Am I missing a developer's version of this file? Is there some other way I am supposed to go about adding this Reference? -- lucas <sturn***@gmail.com> wrote in message
news:1155053334.584112.51590@n13g2000cwa.googlegroups.com... I assume you are using VS.NET...> I did a search on my machine for System.Management.dll and got a hit. > I added this path to the Project Properties -> Reference Paths but this > does not seem to resolve my problem. The hit I got was to > C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 The proper way to do this is to go to Add References, then choose the .NET tab, and select System.Management. You do not use the Browse tab for these kinds of "System" references. -- Alan Alan Pretre wrote:
> The proper way to do this is to go to Add References, then choose the .NET Thank you Alan, this is exactly what I needed to do. > tab, and select System.Management. You do not use the Browse tab for these > kinds of "System" references. > > -- Alan -- lucas Did you add a refernece to System.Management.dll assembly?
<sturn***@gmail.com> wrote in message news:1155051470.673897.272250@75g2000cwc.googlegroups.com... I am hoping this is something simple, but I am at a total loss toHey all, figure out what it is. In a C# application I am writing, the following is my "using" header block: using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Management; using System.Management.Instrumentation; Everything is found just fine, until I get to System.Management and System.Management.Instrumentation. These are not found and the error "namespace Management not found in namespace System" is thrown. Looking at the installed documentation on machine (.NET SDK documentation), there *does* exist a System.Management. Since this is static documetnation on my machine, and came with the .NET libraries, my first assumption is that System.Management should be there. Anyway have any ideas of how ot approach this? I am currently downloading the newest verision of the .NET SDK, but would like to figure out what the heck is going on, in case the upgrade does not solve the problem. -- lucas |
|||||||||||||||||||||||