When trying to connect to a host using the wrong username/password in management.managementscope it reports an unhandled exception in mscorlib.dll even though I've put the code inside a try/catch block.
This is inside a method of my class:
Dim Options as new Management.ConnectionOptions()
Options.Username = "WrongUser"
Options.Password = "WrongPassword"
Dim Scope = new Management.ManagementScope("\\server\\root\cimv2", options)
Catch e as Exception
'handle error: this code will never run
Is there any way to handle unhandled exceptions in child objects ?