Click here to Skip to main content
15,907,874 members
Home / Discussions / C#
   

C#

 
GeneralRe: Acessing Usb Device in C# Pin
Luis Alonso Ramos30-Apr-05 8:31
Luis Alonso Ramos30-Apr-05 8:31 
GeneralSocket.LocalEndPoint is not returning expected value. Pin
johtib29-Apr-05 13:19
johtib29-Apr-05 13:19 
GeneralRe: Socket.LocalEndPoint is not returning expected value. Pin
EssOEss30-Apr-05 19:55
EssOEss30-Apr-05 19:55 
GeneralRe: Socket.LocalEndPoint is not returning expected value. Pin
johtib30-Apr-05 22:37
johtib30-Apr-05 22:37 
GeneralRe: Socket.LocalEndPoint is not returning expected value. Pin
EssOEss1-May-05 0:44
EssOEss1-May-05 0:44 
GeneralThis is very strange... Pin
Nick Z.29-Apr-05 12:41
Nick Z.29-Apr-05 12:41 
GeneralRe: This is very strange... Pin
Nick Z.29-Apr-05 15:01
Nick Z.29-Apr-05 15:01 
QuestionManagement namespace a member of System? Pin
CTaylor8929-Apr-05 10:32
CTaylor8929-Apr-05 10:32 
Here is a sample program from the MSDN help files:

using System;
using System.Management;

// This example demonstrates reading a property of a ManagementObject.
class Sample_ManagementObject
{
public static int Main(string[] args) {
ManagementObject disk = new ManagementObject(
"win32_logicaldisk.deviceid=\"c:\"");
disk.Get();
Console.WriteLine("Logical Disk Size = " + disk["Size"] + " bytes");
return 0;
}
}

It seems simple enough, but when I have tried to build this code I get the following error:

error CS0234: The type or namespace name 'Management' does not exist in the class or namespace 'System' (are you missing an assembly reference?).

I have this same problem in my application and in a test standalone console application that I developed. Does anybody have any idea why I am getting this error? I see that other people are using the Management namespace in other postings, so it seems hard for me to believe that the management namespace is really not a member of the system class.

Any help would be appreciated,
Craig

Craig
AnswerRe: Management namespace a member of System? Pin
Fernando Soto29-Apr-05 11:06
Fernando Soto29-Apr-05 11:06 
GeneralRe: Management namespace a member of System? Pin
CTaylor8929-Apr-05 11:55
CTaylor8929-Apr-05 11:55 
GeneralRe: Management namespace a member of System? Pin
Anonymous30-Apr-05 23:32
Anonymous30-Apr-05 23:32 
GeneralContext menu for TabControl Pin
giplet29-Apr-05 10:25
giplet29-Apr-05 10:25 
GeneralRe: Context menu for TabControl Pin
Ashok Dhamija29-Apr-05 23:07
Ashok Dhamija29-Apr-05 23:07 
GeneralRe: Context menu for TabControl Pin
giplet30-Apr-05 5:29
giplet30-Apr-05 5:29 
GeneralChanging standard windows title bars Pin
dubshell29-Apr-05 10:12
dubshell29-Apr-05 10:12 
Generalconnect to oracle without DSN Pin
IvyLee29-Apr-05 9:58
IvyLee29-Apr-05 9:58 
GeneralDrawString with extra spaces Pin
Werdna29-Apr-05 9:11
Werdna29-Apr-05 9:11 
QuestionWindows Installer C# api? Pin
DStarr29-Apr-05 8:48
DStarr29-Apr-05 8:48 
GeneralMdi form AutoScroll property Pin
M. Aamir Malik29-Apr-05 7:11
M. Aamir Malik29-Apr-05 7:11 
GeneralInstalling program Pin
Robske29-Apr-05 7:04
Robske29-Apr-05 7:04 
GeneralRe: Installing program Pin
Dave Kreskowiak29-Apr-05 7:39
mveDave Kreskowiak29-Apr-05 7:39 
GeneralRe: Installing program Pin
Fernando Soto29-Apr-05 7:44
Fernando Soto29-Apr-05 7:44 
GeneralRe: Installing program Pin
MoustafaS29-Apr-05 14:36
MoustafaS29-Apr-05 14:36 
GeneralCalling unmanaged code Pin
Frank Olorin Rizzi29-Apr-05 6:35
Frank Olorin Rizzi29-Apr-05 6:35 
GeneralRe: Calling unmanaged code Pin
Dan_P29-Apr-05 15:12
Dan_P29-Apr-05 15:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.