Bug #119

Unhandled Exception After Attempting to Change Polling Interval

Added by Ace O about 2 years ago.

Status:New Start:12/29/2009
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:- Spent time: -
Target version:-

Description

Description:
FastForward.NET crashes with an unhandled exception upon attempting to change the Polling Interval in the Server Configuration Pane.

Steps to Reproduce:
1. Open the Settings Pane (File->Settings)
2. Using an existing Server (See below for our server config if this matters) Select and hit the Configure Button. This will open the Server Configuration Pane.
3. Change the Polling Interval to a new value (Our Default was 5, we are attempting to change it to 30)
4. Hit the Ok Button in the Server Configuration Pane.
5. Now Hit the Ok Button in the Settings Pane. This should produce the Unhandled Exception.

Environment:
- Windows 7 Enterprise x64
- CruiseControl.NET Server is 1.4.4 SP1, connected to via .NET Remoting on the local network.
- FastFoward.NET is version 0.5.2009.97
- The only plugin installed currently is the System Tray Monitor.

Existing Issues?:
Looking at your Issue Tracking system there appear to be similar issues within the Settings Pane; but none describing modifying the Polling Interval setting.

Stack Trace:

************** Exception Text **************
System.InvalidOperationException: Unable to safely invoke method ---> System.InvalidOperationException: Unable to safely invoke method ---> System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at FastForward.Monitor.MainForm.AddServer(Server server)
   at FastForward.Monitor.MainForm.<>c__DisplayClass3b.<servers_ServerAdded>b__3a()
   at FastForward.WinCore.ControlUtils.SafeInvoke(Control control, Action action)
   --- End of inner exception stack trace ---
   at FastForward.WinCore.ControlUtils.SafeInvoke(Control control, Action action)
   at FastForward.Monitor.MainForm.servers_ServerAdded(Object sender, ServerChangedArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at FastForward.WinCore.ServerList.FireServerAdded(Server server)
   at FastForward.WinCore.ServerList.AddServer(ServerConfig value)
   at FastForward.WinCore.ServerList.UpdateServer(ServerConfig value)
   at FastForward.Monitor.MainForm.UpdateServers(List`1 previousServers)
   at FastForward.Monitor.MainForm.ReloadAfterSettingsChange(SettingsForm settingsForm)
   at FastForward.Monitor.MainForm.<>c__DisplayClass1d.<ChangeSettings>b__1c()
   at FastForward.WinCore.ControlUtils.SafeInvoke(Control control, Action action)
   --- End of inner exception stack trace ---
   at FastForward.WinCore.ControlUtils.SafeInvoke(Control control, Action action)
   at FastForward.Monitor.MainForm.<>c__DisplayClass1d.<ChangeSettings>b__1b(Object o, EventArgs a)
   at FastForward.Monitor.SettingsForm.okButton_Click(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.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.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
FastForward.Monitor
    Assembly Version: 0.5.2009.97
    Win32 Version: 0.5.2009.97
    CodeBase: file:///C:/Program%20Files%20(x86)/FastForward.NET/Tools/FastForward.Monitor.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
FastForward.WinCore
    Assembly Version: 0.5.2009.97
    Win32 Version: 0.5.2009.97
    CodeBase: file:///C:/Program%20Files%20(x86)/FastForward.NET/Tools/FastForward.WinCore.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    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.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
sv4jifuz
    Assembly Version: 0.5.2009.97
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
ThoughtWorks.CruiseControl.Remote
    Assembly Version: 1.5.0.6222
    Win32 Version: 1.5.0.6222
    CodeBase: file:///C:/Program%20Files%20(x86)/FastForward.NET/Tools/ThoughtWorks.CruiseControl.Remote.DLL
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.4926 built by: NetFXw7
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------

Also available in: Atom PDF