I'm working on a little utility in c# to grab data from a bunch of computers on a domain via WMI, i already have a section which find out if the machine is reachable and if it is then it uses WMI to gather the information from the machine.
However,sometimes i'm getting the below exception and im wondering how i should be handling it. The section where the WMI info is retrieved is already in a try catch block, but i want to be able to keep going if this exception occurs.
below is the exception in question:
Unhandled Exception: System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Management.ManagementScope.InitializeGuts(Object o)
at Get_Computer_names.Program.Main(String args) in C:\Users\a_user\
Documents\Visual Studio 2010\Projects\program_name\program_name\Program.cs:line 77