fix exception in FindConnectionByIdOrName() caused by GetProperties()
Tunnel adapter isatap interfaces case an exception in GetProperties() https://github.com/utapyngo/icsmanager/issues/3 It seems safe to ignore these.
- OK Agreed.
- I don't know of any other way to avoid listing these. Do you? GetConfiguration() also throws a exception.
- ON my machine its throwing exceptions on these interfaces (output of ipconfig):
Tunnel adapter Reusable ISATAP Interface {4904E46B-44EA-4D1F-B2E8-2B66AE67DE56}:
Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . :
Tunnel adapter Local Area Connection* 15:
Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . :
Tunnel adapter isatap.{623F5B2C-1069-4A44-895B-3F1EB4E3D330}:
Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . :
Tunnel adapter Reusable ISATAP Interface {CE2E7EC5-3FA2-4544-A1C1-4878D9E496BB}:
Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : mesh
Tunnel adapter isatap.mesh:
Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . :
Tunnel adapter isatap.{6F8DB0F5-1A0E-4B69-9638-4532FDD28664}:
Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . :
I pushed some more changes. https://github.com/karlhiramoto/icsmanager/commit/e21f16b72ffcf5cb92bce4aaeb8dc336f4e24d84
I catch (System.Runtime.InteropServices.ExternalException) It make the console program work with info, enable, disable of the shares.
Would you please share the console program ?