473,395 Members | 1,558 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,395 software developers and data experts.

VB.Net & WMI System.Management in VB 2005 Express Ed. Beta

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 how
feasible it is. I've learnt so far that I need access to the
System.Management namespace. In my sample application I can't import
this however, VB 2005 reports:

Namespace or type specified in the Imports 'System.Management' cannot
be found.

This is on a Windows 2000 PC with various WMI tools and scripts on
which all work fine, so what am I doing wrong? Is there a mystery
download for something I've missed? Everything I have read so far
indicates that it should be installed already.

Thanks,
--
Dominic Marks
Nov 21 '05 #1
4 5101
Dominic Marks wrote:
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 how
feasible it is. I've learnt so far that I need access to the
System.Management namespace. In my sample application I can't import
this however, VB 2005 reports:

Namespace or type specified in the Imports 'System.Management' cannot
be found.
Before anyone else says it, I needed to Add a Reference to
System.Management.dll in my project before I could use it.

Project -> Add Reference -> .Net
Then Choose System.Management.dll from the list.
This is on a Windows 2000 PC with various WMI tools and scripts on
which all work fine, so what am I doing wrong? Is there a mystery
download for something I've missed? Everything I have read so far
indicates that it should be installed already.

Thanks,
--
Dominic Marks


Easy when you know how!

--
Dominic Marks
Nov 21 '05 #2
The Imports statement is just a shortcut so that you don't have to type
"System.Management" all the time in front of those classes in that
namespace. You still need to add a reference to the correct .dll file.

Right-click your project in Project Explorer and select Add Reference...
You'll find System.Management.dll under the .NET tab.

HTH,
Greg
"Dominic Marks" <do*@helenmarks.co.uk> wrote in message
news:OH****************@TK2MSFTNGP11.phx.gbl...
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 how
feasible it is. I've learnt so far that I need access to the
System.Management namespace. In my sample application I can't import this
however, VB 2005 reports:

Namespace or type specified in the Imports 'System.Management' cannot
be found.
This is on a Windows 2000 PC with various WMI tools and scripts on
which all work fine, so what am I doing wrong? Is there a mystery download
for something I've missed? Everything I have read so far indicates that it
should be installed already.

Thanks,
--
Dominic Marks

Nov 21 '05 #3
> Before anyone else says it

Too late! :^)

Greg

Nov 21 '05 #4
Greg Burns wrote:
Before anyone else says it

Too late! :^)

Greg


I knew someone would!

Thanks,
Dominic
Nov 21 '05 #5

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

Similar topics

3
by: Mike P | last post by:
I've been using Visual Studio 2005 Beta 1 for the last few weeks, and I now want to try using SQL Server 2005 Beta with it. I've been to the Microsoft URL...
10
by: Bonj | last post by:
Hi I installed .NET 2005 express edition, and am about to unnistall it again because it can't seem to be able to even insert a resource file into a project. Can anyone tell me is this right?...
1
by: Peted | last post by:
Hi, sorry if this isnt the correct newsgroups for this questions but im using vc++ 2005 express edition beta2 for learning to program vc++ ..net, as in winforms applications and i was wondering...
15
by: Geoff Cox | last post by:
Hello, Can I separately declare and initialize a string array? How and where would I do it in the code below? It was created using Visual C++ 2005 Express Beta 2 ... In C# I would have ...
2
by: Al | last post by:
I'd installed VC++ Express 2005 beta 2 but I couldn't create new projects from templates or when I opened an existing solution, I couldn' build it: 'exe not found!' The same happened whith...
1
by: Bob | last post by:
Trying to use VBisual web developer express 2005 beta 2. Dragged an accessdatasource to the blank web page. Started to configure. Entered location of an access database. On next page, clicked...
2
by: Alucard | last post by:
Hi all. For those who have VS 2005, do you find that there is only a configuration tools but no management tools for SQL server? I can only manage my SQL DB in VS IDE... Actually, can I get...
3
by: Marco Shaw | last post by:
I've got some C# code to create a custom PowerShell cmdlet with these statements: .... using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; .... ...
1
by: Jerry West | last post by:
I just want to make certain I'm clear on something... I plan on using WMI in my VB.NET 2008 project. To do so I include the following statement: imports System.Management Now, what I want...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.