jochenwierum / openvpn-manager

An OpenVPN Frontend
https://github.com/jochenwierum/openvpn-manager/wiki
GNU General Public License v2.0
152 stars 55 forks source link

Connecting to a second vpn causes an exception #20

Closed luckyjay closed 11 years ago

luckyjay commented 11 years ago

In version 0.0.3.6, if I connect to one connection successfully, then click connect on a second, the following exception occurs:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Text length must be less than 64 characters long.
Parameter name: Text
Actual value was fw-udp-1193-xxxxx (service): Connecting
xxxx-pfsense-udp-1194-Xxxxx.Xxxxxxxx (service): Connecting
.
   at System.Windows.Forms.NotifyIcon.set_Text(String value)
   at OpenVPNManager.FrmGlobalStatus.SetTrayIconAndPopupText()
   at OpenVPNManager.VPNConfig.State_StateChanged(Object sender, StateChangedEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at OpenVPNUtils.States.State.raiseEvents(StateSnapshot ea)
   at OpenVPNUtils.States.State.ChangeState(VPNConnectionState newstate)
   at OpenVPNUtils.ServiceConnection.Connect()
   at OpenVPNManager.VPNConfig.Connect()
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5472 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
OpenVPNManager
    Assembly Version: 0.0.3.7
    Win32 Version: 0.0.3.7
    CodeBase: file:///C:/Program%20Files%20(x86)/OpenVPN%20Manager/OpenVPNManager.exe
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
OpenVPNUtils
    Assembly Version: 0.0.3.7
    Win32 Version: 0.0.3.7
    CodeBase: file:///C:/Program%20Files%20(x86)/OpenVPN%20Manager/OpenVPNUtils.DLL
----------------------------------------
OpenVPN
    Assembly Version: 0.0.3.7
    Win32 Version: 0.0.3.7
    CodeBase: file:///C:/Program%20Files%20(x86)/OpenVPN%20Manager/OpenVPN.DLL
----------------------------------------
men3ho__
    Assembly Version: 0.0.3.7
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.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:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

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.
luckyjay commented 11 years ago

Looks like this was resolved in 0.0.3.8, and since I figured out my problem with running 0.0.3.8, I'm all good now.