DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 10 Jul 2007 22:03:07 +0200,    posted on: microsoft.public.dotnet.framework.wmi        back       

Thread Index
  1    mabra
          2    Pierre a@b.c
                 3    mabra


ManagementException accessing Win32_OperatingSystem.PAEEnabled   
Hi All !

I just copied the sample from the SDK to enum the properties of the 
"Win32_OperatingSystem" class, but got the error in subject:

Unhandled Exception: System.Management.ManagementException: Not found

This happens on a x64 computer

Windows Server 2003 R3, x64 Edition, SP2, en, fully patched
..Net Framework 1.1, all SPs
So, this runs a win32 process.

This is surely a bug, the enumeration returns this property!
A code-excerpt is:

foreach (PropertyData property in properties)
{
	Console.WriteLine("Description: " + 				
		property.Qualifiers["Description"].Value); //BOMB
	...
}

As I mentioned, it's from the SDK ;-)

Each help is very welcomed!

Thanks so far and
best regards,
mabra
Date:Tue, 10 Jul 2007 22:03:07 +0200   Author:  

Re: ManagementException accessing Win32_OperatingSystem.PAEEnabled   
Not familiar witth WMI but I would try rather something like :

MyObject.Properties["Description"].Value

My general approach for this is to start by enumerating all as it looks you 
are looking fro something that is not there...

---
Patrice

"mabra"  a crit dans le message de news: 
eFGSW1ywHHA.4228@TK2MSFTNGP06.phx.gbl...

> Hi All !
>
> I just copied the sample from the SDK to enum the properties of the 
> "Win32_OperatingSystem" class, but got the error in subject:
>
> Unhandled Exception: System.Management.ManagementException: Not found
>
> This happens on a x64 computer
>
> Windows Server 2003 R3, x64 Edition, SP2, en, fully patched
> .Net Framework 1.1, all SPs
> So, this runs a win32 process.
>
> This is surely a bug, the enumeration returns this property!
> A code-excerpt is:
>
> foreach (PropertyData property in properties)
> {
> Console.WriteLine("Description: " + 
> property.Qualifiers["Description"].Value); //BOMB
> ...
> }
>
> As I mentioned, it's from the SDK ;-)
>
> Each help is very welcomed!
>
> Thanks so far and
> best regards,
> mabra 
Date:Sat, 14 Jul 2007 13:19:54 +0200   Author:  

Re: ManagementException accessing Win32_OperatingSystem.PAEEnabled   
Hi !

No, but thanks. I first enumerate the properties and WMI return 
that!!!!!! But if I try to access the value, it bombs.

Best regards,
mabra


Pierre wrote:

> Not familiar witth WMI but I would try rather something like :
> 
> MyObject.Properties["Description"].Value
> 
> My general approach for this is to start by enumerating all as it looks you 
> are looking fro something that is not there...
> 
> ---
> Patrice
> 
> "mabra"  a crit dans le message de news: 
> eFGSW1ywHHA.4228@TK2MSFTNGP06.phx.gbl...
>> Hi All !
>>
>> I just copied the sample from the SDK to enum the properties of the 
>> "Win32_OperatingSystem" class, but got the error in subject:
>>
>> Unhandled Exception: System.Management.ManagementException: Not found
>>
>> This happens on a x64 computer
>>
>> Windows Server 2003 R3, x64 Edition, SP2, en, fully patched
>> .Net Framework 1.1, all SPs
>> So, this runs a win32 process.
>>
>> This is surely a bug, the enumeration returns this property!
>> A code-excerpt is:
>>
>> foreach (PropertyData property in properties)
>> {
>> Console.WriteLine("Description: " + 
>> property.Qualifiers["Description"].Value); //BOMB
>> ...
>> }
>>
>> As I mentioned, it's from the SDK ;-)
>>
>> Each help is very welcomed!
>>
>> Thanks so far and
>> best regards,
>> mabra 
> 
> 
Date:Mon, 16 Jul 2007 16:03:11 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us