473,378 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Missing - Imports System.Management

I'm trying to work with the WMI class in the System.Management
namespace with Visual Basic.Net. I copied and pasted some example code
from Microsoft that contains the following namespace imports:

Imports System
Imports System.Management
Imports ROOT.CIMV2.Win32

Visual Studio does not recognize the System.Management namespace nor
the ROOT.CIMV2.Win32 namespace. They are not listed in Intellisense
listings either.

I'm using the Microsoft Visual Studio .NET 2003 Professional version.

I know I'm probably missing something fundamental but I can't seem to
find it. Any help is *greatly* appreciated.
Feb 17 '06 #1
2 6436
Found the fix.

From the menu bar Project --> Project --> Add Class
"Jason" <ja***@someone.com> wrote in message
news:%2*****************@TK2MSFTNGP10.phx.gbl...
I'm trying to work with the WMI class in the System.Management
namespace with Visual Basic.Net. I copied and pasted some example code
from Microsoft that contains the following namespace imports:

Imports System
Imports System.Management
Imports ROOT.CIMV2.Win32

Visual Studio does not recognize the System.Management namespace nor
the ROOT.CIMV2.Win32 namespace. They are not listed in Intellisense
listings either.

I'm using the Microsoft Visual Studio .NET 2003 Professional version.

I know I'm probably missing something fundamental but I can't seem to
find it. Any help is *greatly* appreciated.

Feb 17 '06 #2
"Jason" <ja***@someone.com> schrieb:
I'm trying to work with the WMI class in the System.Management
namespace with Visual Basic.Net. I copied and pasted some example code
from Microsoft that contains the following namespace imports:

Imports System
Imports System.Management


Are you sure your project contains a reference to "System.Management.dll"?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Feb 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Darshan Mehta | last post by:
I need to use the "System.Management" class to make a program using the WMI, in VB.NET. I tried "Imports System.Management", but I get a syntax error that says: Cannot find class. I need to use...
2
by: Paul Gronka | last post by:
I've got a VB.NET windows application (written in VS .NET 2003) that makes a call to WMI for retrieving the MAC Address from the client's PC. It works on 4 out of the 5 PC's tested so far. All...
4
by: Dominic Marks | last post by:
Hello All, Hope this is the correct group, here goes: I'm looking into writing a small application to interface with WMI, and downloaded the Express Edition Beta of Visual Basic 2005 to see...
3
by: .NETMystified | last post by:
Windows XP Pro is upto date....just checked I have: Visual Studio.NET 2003 .NET Framework 1.1 .NET Framework (Hotfix) whatever that means...lol. Office 2003 which I just checked....upto date. ...
6
by: barbara_dave | last post by:
Hi all, I am trying use eventArrived event to do plug-play, but I get error on the code "Imports System.management". It seems I don't have management namespace in my systems. How to solve this...
1
by: theintrepidfox | last post by:
Dear Group I wonder whether anyone has some information on the cause for this error? I've created a class for Win32_BIOS with mgmtclassgen Win32_BIOS /L VB, added the file to my VB.NET project...
3
by: Anil Gupte | last post by:
I am getting this error: Type 'System.Management.ManagementClass' is not defined. The statement is: Dim diskClass As New System.Management.ManagementClass("Win32_LogicalDisk") According to the...
1
by: Graham35p | last post by:
I was sent a section of program a while few months to allow me to access the CPU temperature. Unfortunately I have only just been able to try the code. One of the first lines is...
4
by: Albert | last post by:
Hi, when do i need this: Imports System.Data and when this: Imports System.Data.SqlClient? More specifically, when i want to perform a select or update of a table using: connection = New...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel

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.