Skip to content

Disable show ComObject #12

@jacobsiu

Description

@jacobsiu

I run the icsmanager with Visual Studio and run into the following error.
Need help ...I use Windows 10 and want to use c# to enable/disable ICs
Thanks

C:\icsmanager-master\IcsManagerConsole\bin\Debug>IcsManager disable
Internet Connection Sharing will be disabled:
System.__ComObject -> System.__ComObject

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at NETCONLib.INetSharingConfiguration.DisableSharing()
at IcsManagerLibrary.IcsManager.ShareConnection(INetConnection connectionToShare, INetConnection homeConnection) in C:\icsmanager-master\IcsManagerLibrary\IcsManager.cs:line 55
at IcsManagerConsole.Program.DisableICS() in C:\icsmanager-master\IcsManagerConsole\Program.cs:line 111
at IcsManagerConsole.Program.Main(String[] args) in C:\icsmanager-master\IcsManagerConsole\Program.cs:line 169

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions