Dear Group
I wonder whether anyone has some information on the cause for this
error? I've created a class for Win32_BIOS with mgmtclassgen
Win32_BIOS /L VB, added the file to my VB.NET project and tried calling
a property with the following code in a button_click event:
Dim PCBios As New ROOT.CIMV2.Win32.BIOS
Debug.WriteLine(PCBios.Version*)
I get the same error with other generated Win32 classes and their
properties.
The error is:
An unhandled exception of type 'System.Management.ManagementException'
occurred in system.management.dll
Additional information: Not found
The error occurs as an example in BIOS.VB at this location in the line
(highligted green) containing the RETURN statement:
Public ReadOnly Property Version As String
Get
Return CType(curObj("Version"),String*)
End Get
End Property
Thanks for your help and efforts!
Martin