Unhandled exception: Item has already been added. Key in dictionary: '11' Key being added: '11'
Just installed and trying to run. After a few moments I get:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
** Exception Text **
System.ArgumentException: Item has already been added. Key in dictionary: '11' Key being added: '11'
at System.Collections.SortedList.Add(Object key, Object value)
at Browser_Chooser_2.frmAddEditBrowser.doAddBrowser(Dictionary2 aBrowsers, Dictionary
2 aProtocols, Dictionary2 aFileTypes, Boolean abAdvancedScreens, Point aXY, Browser aOriginal)
at Browser_Chooser_2.frmAddEditBrowser.AddBrowser(Dictionary
2 aBrowsers, Dictionary2 aProtocols, Dictionary
2 aFileTypes, Boolean abAdvancedScreens, Point aXY)
at Browser_Chooser_2.frmOptions.cmdBrowserAdd_Click(Object sender, EventArgs e)
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.8669 (QFE.050727-8600) CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
Browser Chooser 2 Assembly Version: 2.0.3.21514 Win32 Version: 2.0.3.21514 CodeBase: file:///C:/Program%20Files%20(x86)/BrowserChooser2/Browser%20Chooser%202.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.8759 (QFE.050727-8700) 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
Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.5483 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.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
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
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
l2mkzoo7 Assembly Version: 2.0.3.21514 Win32 Version: 2.0.50727.8759 (QFE.050727-8700) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
OSVersionInfo Assembly Version: 3.0.0.0 Win32 Version: 2.0.3.21514 CodeBase: file:///C:/Program%20Files%20(x86)/BrowserChooser2/Browser%20Chooser%202.exe
TAFactory.IconPack Assembly Version: 1.0.0.0 Win32 Version: 2.0.3.21514 CodeBase: file:///C:/Program%20Files%20(x86)/BrowserChooser2/Browser%20Chooser%202.exe
SepCombo Assembly Version: 1.0.0.0 Win32 Version: 2.0.3.21514 CodeBase: file:///C:/Program%20Files%20(x86)/BrowserChooser2/Browser%20Chooser%202.exe
teqgweeq Assembly Version: 2.0.3.21514 Win32 Version: 2.0.50727.8759 (QFE.050727-8700) 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.
Comments (8)
-
repo owner -
repo owner I just tested with all the detectable browsers (17!) and could not reproduce this error.
The good news is I know where it crashes, but not why. I can add in some traps in the future to help prevent the issue.
-
repo owner Re-reading the stack above, you click on a button. You probably inserted a duplicate value. I will need to prevent that.
-
repo owner - changed version to Release 1
- changed milestone to Release 1.1
-
repo owner - changed status to open
-
repo owner I added a few checks to prevent this from hapening, but the browser chooser 2.xml file has 2 or more items at the same position.
-
repo owner - changed milestone to Release 2
-
repo owner - changed status to resolved
Fixed in Release 2, out now.
- Log in to comment
Interesting. It seems to have tried to add more than 10 browsers to the list. This is on a fresh install correct?