wiresock / WireSockUI

GUI to use Wiresock VPN Client in application mode
https://www.wiresock.net/
205 stars 11 forks source link

`System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.` #14

Closed rakleed closed 1 year ago

rakleed commented 1 year ago

I imported the config, but when I click on it or when I try to activate, I get this error every time. There is no such problem with TunnlTo.

Log: ```log See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception. at WireSockUI.Native.WireguardBoosterExports.wgb_create_tunnel_from_file_w(IntPtr wgboosterHandle, String fileName) at WireSockUI.WireSockManager.Connect(String profile) at WireSockUI.Forms.FrmMain.OnProfileClick(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.8.9166.0 built by: NET481REL1LAST_B CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll ---------------------------------------- WireSockUI Assembly Version: 0.1.2.0 Win32 Version: 0.1.2 CodeBase: file:///C:/Program%20Files/WireSock%20VPN%20Client/wiresockui/WireSockUI.exe ---------------------------------------- System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.8.9075.0 built by: NET481REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System Assembly Version: 4.0.0.0 Win32 Version: 4.8.9166.0 built by: NET481REL1LAST_B CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.8.9166.0 built by: NET481REL1LAST_B CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.8.9032.0 built by: NET481REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box. ```

Windows 11 22H2, WireShock 1.2.26.1, WireShockUI 0.1.2.

wiresock commented 1 year ago

I believe the issue may be associated with the configuration file format. Would you mind sharing the contents of your configuration file? Please ensure to remove or redact any sensitive information, such as keys, before sharing.

rakleed commented 1 year ago
[Interface]
PrivateKey = <private_key>
Address = 172.16.82.2/24
MTU = 
DNS = 1.1.1.1, 1.0.0.1

[Peer]
PublicKey = <public_key>
AllowedIPs = 172.16.82.1/32, 192.168.22.0/24, 0.0.0.0/0
Endpoint = <domain>:<port>
PersistentKeepalive = 5

AllowedApps = msedge
DisallowedApps = 
DisallowedIPs = 
wiresock commented 1 year ago

We appreciate your diligence in reporting this issue and providing us with the necessary details. We're happy to inform you that we have resolved the problem. We kindly ask that you update your Wiresock VPN Client to version 1.2.27 to benefit from this fix. Thank you for your continued support and cooperation.