Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > System.Management

Reply
Thread Tools

System.Management

 
 
news.orange.nl
Guest
Posts: n/a
 
      07-05-2007
System.Management does not seem to import when I use Visual Web Developer
2005 Express Edition

I put
<%@ Import Namespace="System.Management" %>

in my code. asp page

If I put

Dim objMOS As System.Management.ManagementObjectSearcher

In my vb code, it says that the type is not defined.

Why is this and is there a workaround?




 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      07-05-2007
"news.orange.nl" <> wrote in message
news:468d5931$0$63069$...

> System.Management does not seem to import when I use Visual Web Developer
> 2005 Express Edition


It won't by default...

> In my vb code, it says that the type is not defined.


It will do initially...

> Why is this


Because the System.Management namespace is not part of the default project
template.

> and is there a workaround?


Just add a reference to the System.Management namespace in Project Explorer.


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57