Unhandled exception when adding installation profile

Bug #1587112 reported by Jeffrey Kraus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
New
Undecided
Unassigned

Bug Description

When adding an installation profile with the same name as an existing profile an unhandled 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.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 ORTS.OptionsForm.buttonOK_Click(Object sender, EventArgs e) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Menu\Options.cs:line 481
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.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.OnMessage(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.5485 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Menu
    Assembly Version: 0.0.5934.37820
    Win32 Version: 0.0.5934.37820
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/Menu.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
    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.8686 (QFE.050727-8600)
    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.5495 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ORTS.Common
    Assembly Version: 0.0.5934.37813
    Win32 Version: 0.0.5934.37813
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Common.DLL
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.5420 built by: Win7SP1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
ORTS.Menu
    Assembly Version: 0.0.5934.37819
    Win32 Version: 0.0.5934.37819
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Menu.DLL
----------------------------------------
Orts.Formats.OR
    Assembly Version: 0.0.5934.37815
    Win32 Version: 0.0.5934.37815
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/Orts.Formats.OR.DLL
----------------------------------------
Orts.Formats.Msts
    Assembly Version: 0.0.5934.37814
    Win32 Version: 0.0.5934.37814
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/Orts.Formats.Msts.DLL
----------------------------------------
GNU.Gettext
    Assembly Version: 1.1.5151.39896
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/GNU.Gettext.DLL
----------------------------------------
ORTS.Updater
    Assembly Version: 0.0.5934.37820
    Win32 Version: 0.0.5934.37820
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Updater.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5494 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ORTS.Settings
    Assembly Version: 0.0.5934.37815
    Win32 Version: 0.0.5934.37815
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Settings.DLL
----------------------------------------
Microsoft.Xna.Framework
    Assembly Version: 3.1.0.0
    Win32 Version: 3.1.10527.0 built by: xnabldr
    CodeBase: file:///C:/Windows/assembly/GAC_32/Microsoft.Xna.Framework/3.1.0.0__6d5c3888ef60e27d/Microsoft.Xna.Framework.dll
----------------------------------------
GNU.Gettext.WinForms
    Assembly Version: 1.0.5151.39911
    Win32 Version: 1.0.5151.39911
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/GNU.Gettext.WinForms.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
ORTS.Content
    Assembly Version: 0.0.5934.37814
    Win32 Version: 0.0.5934.37814
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/ORTS.Content.DLL
----------------------------------------
Newtonsoft.Json
    Assembly Version: 4.5.0.0
    Win32 Version: 5.0.6.16206
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/Newtonsoft.Json.DLL
----------------------------------------
Orts.Parsers.Msts
    Assembly Version: 0.0.5934.37813
    Win32 Version: 0.0.5934.37813
    CodeBase: file:///C:/Program%20Files%20(x86)/Open%20Rails/Orts.Parsers.Msts.DLL
----------------------------------------
System.ComponentModel.DataAnnotations
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.5420
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/3.5.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.4506.5463 (Win7SP1GDR.030729-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
msvcm90
    Assembly Version: 9.0.30729.6161
    Win32 Version: 9.00.30729.6161
    CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57/msvcm90.dll
----------------------------------------
System.Xml.Linq
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.5420 built by: Win7SP1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.