AndrewArgus
Programmer
I am getting this error from a call within my code:
string queryStr = "Select Name,PathName,StartMode from Win32_Service Where Name='ArgusService2'";
System.Management.ObjectQuery oQuery = new ObjectQuery(queryStr);
System.Management.ManagementObjectSearcher oSearcher = new ManagementObjectSearcher(oQuery);
foreach (System.Management.ManagementObject oService in oSearcher.Get())
At the .Get an exception is thrown and the error listed on the Subject line is returned. It comes back very quickly (.07 seconds).
Any suggestions would be helpful.
string queryStr = "Select Name,PathName,StartMode from Win32_Service Where Name='ArgusService2'";
System.Management.ObjectQuery oQuery = new ObjectQuery(queryStr);
System.Management.ManagementObjectSearcher oSearcher = new ManagementObjectSearcher(oQuery);
foreach (System.Management.ManagementObject oService in oSearcher.Get())
At the .Get an exception is thrown and the error listed on the Subject line is returned. It comes back very quickly (.07 seconds).
Any suggestions would be helpful.