Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   System.Management (http://www.velocityreviews.com/forums/t519903-system-management.html)

news.orange.nl 07-05-2007 08:49 PM

System.Management
 
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?





Mark Rae [MVP] 07-05-2007 09:05 PM

Re: System.Management
 
"news.orange.nl" <iemand@microsoft.com> wrote in message
news:468d5931$0$63069$dbd4b001@news.wanadoo.nl...

> 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



All times are GMT. The time now is 11:47 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.