VB.Net - The dependency service does not exist or has been marked for deletion. (Exception from HRESULT: 0x80070433)
-
First timer with VB and .Net In the following code I get the displayed error when I execute the objOS.Get. I'm executing on an XP Pro SP3 and have all updates installed. I would assume I'm missing something but WHAT? Any help is appreciated. Dim objMgmt As ManagementObject Dim objOS As New ManagementObjectSearcher("SELECT * FROM Win32_OperatingSystem") For Each objMgmt In objOS.Get A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Management.dll An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Management.dll Additional information: The dependency service does not exist or has been marked for deletion. (Exception from HRESULT: 0x80070433) TIA
Tony Teveris Gerber Scientific Products Senior Software Engineer Phone: 860 648 8151 Fax: 860 648 8214 83 Gerber Road West South Windsor, CT 06074