icsmanager icon indicating copy to clipboard operation
icsmanager copied to clipboard

fix exception in FindConnectionByIdOrName() caused by GetProperties()

Open karlhiramoto opened this issue 11 years ago • 3 comments

Tunnel adapter isatap interfaces case an exception in GetProperties() https://github.com/utapyngo/icsmanager/issues/3 It seems safe to ignore these.

karlhiramoto avatar Feb 07 '14 16:02 karlhiramoto

  1. OK Agreed.
  2. I don't know of any other way to avoid listing these. Do you? GetConfiguration() also throws a exception.
  3. 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 . :

karlhiramoto avatar Feb 07 '14 16:02 karlhiramoto

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.

karlhiramoto avatar Feb 07 '14 17:02 karlhiramoto

Would you please share the console program ?

jacobsiu avatar Jan 26 '17 20:01 jacobsiu