New Version causes .NET Framework error

Issue #32 resolved
Norbert T. created an issue

Hi,

I really appreciate the tool and your efforts in providing it. I use this all the time and cannot do without.

After I upgraded from 2.0.3.21514 to Version 2.0.4.25075 I get a .NET Framework error object reference not set to an instance of an object. The full error text is at the bottom. 2018-02-26 10_13_37-Choose a Browser.png I can click on [Continue] and I get an empty UI. If I check the box at the bottom it will continue. 2018-02-26 11_05_51-Choose a Browser - https___www.drei.at_.png

When running Browser Chooser 2.exe directly (not via a URL) it detects all browsers and shows them in the UI

I already tried cleaning the registry for any old references and removed the BrowserChooser2Config.xml but the error keeps coming

I had to go back to the previous version, that keeps bugging me to update

Thanks again for your efforts.

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

** Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at Browser_Chooser_2.frmMain.InitializeMain() at Browser_Chooser_2.frmMain.frmMain_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.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.8825 (WinRelRS3.050727-8800) CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll


Browser Chooser 2 Assembly Version: 2.0.4.25075 Win32 Version: 2.0.4.25075 CodeBase: file:///C:/Users/tschierschno/Downloads/Software/BrowserChooser/Browser%20Chooser%202.exe


Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.8825 (WinRelRS3.050727-8800) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll


System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.8825 (WinRelRS3.050727-8800) 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.8825 (WinRelRS3.050727-8800) 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.8825 (WinRelRS3.050727-8800) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


System.Core Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.8833 built by: WinRelRS3 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll


System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.8827 (WinRelRS3.050727-8800) 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.8825 (WinRelRS3.050727-8800) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


djd3sylm Assembly Version: 2.0.4.25075 Win32 Version: 2.0.50727.8825 (WinRelRS3.050727-8800) 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.4.25075 CodeBase: file:///C:/Users/tschierschno/Downloads/Software/BrowserChooser/Browser%20Chooser%202.exe


TAFactory.IconPack Assembly Version: 1.0.0.0 Win32 Version: 2.0.4.25075 CodeBase: file:///C:/Users/tschierschno/Downloads/Software/BrowserChooser/Browser%20Chooser%202.exe


** 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 (9)

  1. guy repo owner

    Can you please provide you BrowserChooser2Config.xml file. It can be found in %appdata%\Browser Chooser 2. You can also try with --log at the command line and provide the log file. I will be written to the same folder that you run BC2 from.

    Finally, you can disable checking for updates from the settings -> settings -> startup -> Automatically check for updates

  2. Norbert T. reporter

    I've attached the files as requested.

    I also got the auto update to work, at first it would not save the setting, but it does now.

  3. Log in to comment