Home All Groups Group Topic Archive Search About

System.Management not found

Author
8 Aug 2006 3:37 PM
sturnfie@gmail.com
Hey all,

I 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

Author
8 Aug 2006 3:51 PM
Alan Pretre
<sturn***@gmail.com> wrote in message
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
Author
8 Aug 2006 4:08 PM
sturnfie@gmail.com
Alan Pretre wrote:
> <sturn***@gmail.com> wrote in message
> 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 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

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
Author
8 Aug 2006 4:47 PM
Alan Pretre
<sturn***@gmail.com> wrote in message
news:1155053334.584112.51590@n13g2000cwa.googlegroups.com...
> 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

I assume you are using VS.NET...

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
Author
8 Aug 2006 4:53 PM
sturnfie@gmail.com
Alan Pretre wrote:
> 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


Thank you Alan, this is exactly what I needed to do. 

--
lucas
Author
8 Aug 2006 3:53 PM
Siva M
Did you add a refernece to System.Management.dll assembly?

<sturn***@gmail.com> wrote in message
news:1155051470.673897.272250@75g2000cwc.googlegroups.com...
Hey all,

I 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

AddThis Social Bookmark Button