PC Review


Reply
Thread Tools Rate Thread

Calling ManagementObjectSearcher.Get

 
 
Shahin
Guest
Posts: n/a
 
      11th Dec 2003
Greetings,

I am calling ManagementObjectSearcher.Get but I get an
error saying invalid name space. I noticed in the
documentation it says

Full trust for the immediate caller.

How do I make the EXE to have Full Trust.

Thank You
Shahin


 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      12th Dec 2003
Hi,

Did you add a reference to system.management to your app?

Ken
----------------
"Shahin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Greetings,
>
> I am calling ManagementObjectSearcher.Get but I get an
> error saying invalid name space. I noticed in the
> documentation it says
>
> Full trust for the immediate caller.
>
> How do I make the EXE to have Full Trust.
>
> Thank You
> Shahin
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CS0246: The type or namespace name 'ManagementObjectSearcher' couldnot be found CKKwan Microsoft C# .NET 1 20th Mar 2009 05:58 PM
ManagementObjectSearcher must put in a folder which is accessible byanonymous user?! CKKwan Microsoft ASP .NET 0 20th Mar 2009 01:33 PM
ManagementObjectSearcher doesn't in namespcae. Boki Microsoft C# .NET 2 7th Aug 2008 09:56 AM
Using ManagementObjectSearcher for serial port list Claire Microsoft C# .NET 2 3rd Jun 2004 10:52 AM
question about managementObjectSearcher Cyrus Microsoft Dot NET Framework Forms 0 31st Oct 2003 03:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:20 PM.