471,319 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

System.Management

I'm writing a program in C# and found a couple of threads about how to
check the status of a printer before sending it any data, to ensure
that the printer is ready to print. They say to include the
System.Management namespace. This is where my problem is, I have no
System.Management namespace. Could anyone help me locate it or a
reference to locate it?

Jan 4 '06 #1
7 6459
If you have .Net 2.0 then it is in
c:\windows\Microsoft.Net\v2.0\SystemManagement.dll .

"eric" wrote:
I'm writing a program in C# and found a couple of threads about how to
check the status of a printer before sending it any data, to ensure
that the printer is ready to print. They say to include the
System.Management namespace. This is where my problem is, I have no
System.Management namespace. Could anyone help me locate it or a
reference to locate it?

Jan 4 '06 #2
Actually I think that should be:

C:\WINDOWS\Microsoft.NET\Framework\<version>\Syste m.Management.dll
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Terry" wrote:
If you have .Net 2.0 then it is in
c:\windows\Microsoft.Net\v2.0\SystemManagement.dll .

"eric" wrote:
I'm writing a program in C# and found a couple of threads about how to
check the status of a printer before sending it any data, to ensure
that the printer is ready to print. They say to include the
System.Management namespace. This is where my problem is, I have no
System.Management namespace. Could anyone help me locate it or a
reference to locate it?

Jan 5 '06 #3
hi i've the same problem
when i type
using System.Management;
and compile the VS gives me an error indicating that there is no namespace
named System.Management
i've tried this both on VS 2003 and VS 2005 using C# using both frameworks
1.1 and 2.0
i was trying to make a windows based application using this namespace to
fingerprint machines to protect my software from piracy
here is a link fot that code
http://www.vbforums.com/showthread.php?t=250436&page=1
the funny thing that System.Management is documented on VS 2003 but still
the VS 2003 IDE doesn't recognize it as a valid namespace
it's also documented here
http://msdn.microsoft.com/library/de...management.asp
please help i really need a fast answer for this problem
thanx in advance
"Peter Bromberg [C# MVP]" wrote:
Actually I think that should be:

C:\WINDOWS\Microsoft.NET\Framework\<version>\Syste m.Management.dll
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Terry" wrote:
If you have .Net 2.0 then it is in
c:\windows\Microsoft.Net\v2.0\SystemManagement.dll .

"eric" wrote:
I'm writing a program in C# and found a couple of threads about how to
check the status of a printer before sending it any data, to ensure
that the printer is ready to print. They say to include the
System.Management namespace. This is where my problem is, I have no
System.Management namespace. Could anyone help me locate it or a
reference to locate it?

Jan 13 '06 #4
one more thing
i've reinstalled the framework and tried that on 2 machine with both VS 2003
and VS 2005 and still the problem is the same
"Fady Anwar" wrote:
hi i've the same problem
when i type
using System.Management;
and compile the VS gives me an error indicating that there is no namespace
named System.Management
i've tried this both on VS 2003 and VS 2005 using C# using both frameworks
1.1 and 2.0
i was trying to make a windows based application using this namespace to
fingerprint machines to protect my software from piracy
here is a link fot that code
http://www.vbforums.com/showthread.php?t=250436&page=1
the funny thing that System.Management is documented on VS 2003 but still
the VS 2003 IDE doesn't recognize it as a valid namespace
it's also documented here
http://msdn.microsoft.com/library/de...management.asp
please help i really need a fast answer for this problem
thanx in advance
"Peter Bromberg [C# MVP]" wrote:
Actually I think that should be:

C:\WINDOWS\Microsoft.NET\Framework\<version>\Syste m.Management.dll
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Terry" wrote:
If you have .Net 2.0 then it is in
c:\windows\Microsoft.Net\v2.0\SystemManagement.dll .

"eric" wrote:

> I'm writing a program in C# and found a couple of threads about how to
> check the status of a printer before sending it any data, to ensure
> that the printer is ready to print. They say to include the
> System.Management namespace. This is where my problem is, I have no
> System.Management namespace. Could anyone help me locate it or a
> reference to locate it?
>
>

Jan 13 '06 #5
Fady,
You have to set a hard reference in the project to the actual
System.Managment.dll assembly, its not standard in machine.config.

Hope that helps!

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Fady Anwar" wrote:
hi i've the same problem
when i type
using System.Management;
and compile the VS gives me an error indicating that there is no namespace
named System.Management
i've tried this both on VS 2003 and VS 2005 using C# using both frameworks
1.1 and 2.0
i was trying to make a windows based application using this namespace to
fingerprint machines to protect my software from piracy
here is a link fot that code
http://www.vbforums.com/showthread.php?t=250436&page=1
the funny thing that System.Management is documented on VS 2003 but still
the VS 2003 IDE doesn't recognize it as a valid namespace
it's also documented here
http://msdn.microsoft.com/library/de...management.asp
please help i really need a fast answer for this problem
thanx in advance
"Peter Bromberg [C# MVP]" wrote:
Actually I think that should be:

C:\WINDOWS\Microsoft.NET\Framework\<version>\Syste m.Management.dll
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Terry" wrote:
If you have .Net 2.0 then it is in
c:\windows\Microsoft.Net\v2.0\SystemManagement.dll .

"eric" wrote:

> I'm writing a program in C# and found a couple of threads about how to
> check the status of a printer before sending it any data, to ensure
> that the printer is ready to print. They say to include the
> System.Management namespace. This is where my problem is, I have no
> System.Management namespace. Could anyone help me locate it or a
> reference to locate it?
>
>

Jan 13 '06 #6
really thanx alot now i can see it in the system namespace tree in VS 2003
but i would like to ask a q
y it's not standard?

"Peter Bromberg [C# MVP]" wrote:
Fady,
You have to set a hard reference in the project to the actual
System.Managment.dll assembly, its not standard in machine.config.

Hope that helps!

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Fady Anwar" wrote:
hi i've the same problem
when i type
using System.Management;
and compile the VS gives me an error indicating that there is no namespace
named System.Management
i've tried this both on VS 2003 and VS 2005 using C# using both frameworks
1.1 and 2.0
i was trying to make a windows based application using this namespace to
fingerprint machines to protect my software from piracy
here is a link fot that code
http://www.vbforums.com/showthread.php?t=250436&page=1
the funny thing that System.Management is documented on VS 2003 but still
the VS 2003 IDE doesn't recognize it as a valid namespace
it's also documented here
http://msdn.microsoft.com/library/de...management.asp
please help i really need a fast answer for this problem
thanx in advance
"Peter Bromberg [C# MVP]" wrote:
Actually I think that should be:

C:\WINDOWS\Microsoft.NET\Framework\<version>\Syste m.Management.dll
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Terry" wrote:

> If you have .Net 2.0 then it is in
> c:\windows\Microsoft.Net\v2.0\SystemManagement.dll .
>
> "eric" wrote:
>
> > I'm writing a program in C# and found a couple of threads about how to
> > check the status of a printer before sending it any data, to ensure
> > that the printer is ready to print. They say to include the
> > System.Management namespace. This is where my problem is, I have no
> > System.Management namespace. Could anyone help me locate it or a
> > reference to locate it?
> >
> >

Jan 13 '06 #7
You have to add a reference to everything that's not in mscorlib.dll or
automatically referenced when you create a new project of a certain type (eg
Windows App will reference the dll with System.Windows.Forms).

There are several dlls because it would be inefficient to load and init a
load of stuff that you aren't going to use.

As I recall the documentation now tells you the name of the defining dll for
every class etc.

One reason why there are several dlls is to allow finer control of
versioning.

(Another reason for separate dlls is for separate assemblies because
otherwise the scope of 'internal' would be too large - I'm not a fan of
internal)

"Fady Anwar" <Fa*******@discussions.microsoft.com> wrote in message
news:13**********************************@microsof t.com...
really thanx alot now i can see it in the system namespace tree in VS 2003
but i would like to ask a q
y it's not standard?

"Peter Bromberg [C# MVP]" wrote:
Fady,
You have to set a hard reference in the project to the actual
System.Managment.dll assembly, its not standard in machine.config.

Hope that helps!

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Fady Anwar" wrote:
> hi i've the same problem
> when i type
> using System.Management;
> and compile the VS gives me an error indicating that there is no
> namespace
> named System.Management
> i've tried this both on VS 2003 and VS 2005 using C# using both
> frameworks
> 1.1 and 2.0
> i was trying to make a windows based application using this namespace
> to
> fingerprint machines to protect my software from piracy
> here is a link fot that code
> http://www.vbforums.com/showthread.php?t=250436&page=1
> the funny thing that System.Management is documented on VS 2003 but
> still
> the VS 2003 IDE doesn't recognize it as a valid namespace
> it's also documented here
> http://msdn.microsoft.com/library/de...management.asp
> please help i really need a fast answer for this problem
> thanx in advance
> "Peter Bromberg [C# MVP]" wrote:
>
> > Actually I think that should be:
> >
> > C:\WINDOWS\Microsoft.NET\Framework\<version>\Syste m.Management.dll
> >
> >
> > Co-founder, Eggheadcafe.com developer portal:
> > http://www.eggheadcafe.com
> > UnBlog:
> > http://petesbloggerama.blogspot.com
> >
> >
> >
> >
> > "Terry" wrote:
> >
> > > If you have .Net 2.0 then it is in
> > > c:\windows\Microsoft.Net\v2.0\SystemManagement.dll .
> > >
> > > "eric" wrote:
> > >
> > > > I'm writing a program in C# and found a couple of threads about
> > > > how to
> > > > check the status of a printer before sending it any data, to
> > > > ensure
> > > > that the printer is ready to print. They say to include the
> > > > System.Management namespace. This is where my problem is, I have
> > > > no
> > > > System.Management namespace. Could anyone help me locate it or a
> > > > reference to locate it?
> > > >
> > > >

Jan 15 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by PaulThomas | last post: by
reply views Thread by Masood Siddiqi [MSFT] | last post: by
8 posts views Thread by =?Utf-8?B?YXVsZGg=?= | last post: by
3 posts views Thread by Marco Shaw | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.