Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix exception in FindConnectionByIdOrName() caused by GetProperties() #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

karlhiramoto
Copy link

Tunnel adapter isatap interfaces case an exception in GetProperties()
#3
It seems safe to ignore these.

Tunnel adapter isatap interfaces case an exception in GetProperties()
utapyngo#3
It seems safe to ignore these.
@karlhiramoto
Copy link
Author

  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 . :

…xceptions

on some tunnel interfaces.  Ignore the exceptions, as sharing them doesn't make sense anyways.
@karlhiramoto
Copy link
Author

I pushed some more changes. karlhiramoto@e21f16b

I catch (System.Runtime.InteropServices.ExternalException)
It make the console program work with info, enable, disable of the shares.

@jacobsiu
Copy link

Would you please share the console program ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants