Error in Windows 10 making Browser Chooser 2 Default

Issue #1 resolved
Mark Williams created an issue

Getting the following in Windows 10 when I click the "Make Default*" button.

Error

1-28-2016 7-28-48 AM.png

Details

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

** Exception Text ** System.Runtime.InteropServices.COMException (0x80070483): No application is associated with the specified file for this operation. (Exception from HRESULT: 0x80070483) at Browser_Chooser_2.WinAPIExtras.IApplicationAssociationRegistrationUI.LaunchAdvancedAssociationUI(String pszAppRegName) at Browser_Chooser_2.DefaultBrowser.MakeDefault(Scope aScope, Boolean aForce8, Boolean aShowMessage) at Browser_Chooser_2.frmOptions.MakeDefault() at Browser_Chooser_2.frmOptions.cmdMakeDefault_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.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.8670 (QFE.050727-8600) CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll


Browser Chooser 2 Assembly Version: 2.0.3.14954 Win32 Version: 2.0.3.14954 CodeBase: file:///C:/Dropbox/Settings/Browser%20Chooser/Browser%20Chooser%202.exe


System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.8670 (QFE.050727-8600) 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.8670 (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.8670 (QFE.050727-8600) 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.8670 (QFE.050727-8600) 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.8670 (QFE.050727-8600) 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.8670 (QFE.050727-8600) 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.8693 built by: QFE CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll


wbt8fjys Assembly Version: 2.0.3.14954 Win32 Version: 2.0.50727.8670 (QFE.050727-8600) CodeBase: file:///C:/windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


TAFactory.IconPack Assembly Version: 1.0.0.0 Win32 Version: 2.0.3.14954 CodeBase: file:///C:/Dropbox/Settings/Browser%20Chooser/Browser%20Chooser%202.exe


Accessibility Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.8670 (QFE.050727-8600) CodeBase: file:///C:/windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.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 (15)

  1. guy repo owner

    Interesting. Seems like the dialog for choosing a default browser is not present. Are you using the most recent version of Win10 or a Developer Version.

    I will try to reproduce the error this weekend when I get access to my Win10 VMs.

    Thanks!

  2. Mark Williams reporter

    Here's my current version: 1-28-2016 10-47-00 AM.png

    It is a non-Developer version on a Surface Pro 4 if that helps.

    Thanks for your help!

  3. guy repo owner

    Applogies for the late response - took longer than I expect to get a Win10 VM running. I can confirm the crash you are having. You must click on Add to Default programs button first before the make default button. I will a trap in the next version to prevent this crash.

    Having said that, win10 makes becoming the default app even more difficult - after Adding to the default programs list, you must go into the windows 10 Settings and set BC2 as your default. I don't know if there is any other way around it.

  4. Mark Williams reporter

    I get the same error even when clicking the Add to Default Programs button first.

    I did check the Windows 10 Default App Screen and BC2 does not show up in the list (even after clicking the Add to Default programs button).

    Strangely, I do have another Windows 10 system at home that works. It was upgraded from Windows 7, whereas the problem system is a new Surface Pro 4.

  5. guy repo owner

    I think it might be the Surface Pro. MS may have a different version with less 'APIs' in it. I will have to dig into the MS documentation. Unfortunately, they are getting more and more hostile to different browsers.

  6. guy repo owner

    Can one of you give me the details from the first button. The error will be different. I do not have access to a Surface Pro so my ability to debug will be limited.

  7. Mark Williams reporter

    I don't get an error clicking the "Add to Default Programs" button. The screen kind of flashes, but there is no warning, error or confirmation. Sorry, that wasn't clear from one of my previous follow up messages.

    I was intending to say that I get the "Make Default*" button error regardless of whether I click the "Add to Default Programs" button first.

  8. Paul Trevino

    Yup.... exact same here. no error on the first button... but it doesnt add it to the programs. second always gets the error.

  9. guy repo owner

    Great. thanks. What is happening is Windows 10 do not have that API anymore. On my test mahcine, a dialog window pop-ups somthing about this app not being compatible. This is what is not happening on surface.

    Unless someone can find a way to fool Windows into accepting a different default browsers, this button will never work again.

    There is a side issue where some registry keys may be missing and windows 10 does not allow you to choose BC2 as a default browser.

    This is very frustrating to see MS make life harder and harder on browser developers.

  10. guy repo owner

    In today's commit, I now finally pop-up the correct dialog. Should no longer crash.

    Not sure when it will be release - getting there. Early guess is Late April.

  11. Paul Trevino

    [image: 2016-05-23_120836.jpg]

    Unhandled exception as soon as I click the config button....

    Version 2.0.3.35882 Beta 2

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

    ** Exception Text ** System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load type 'SeparatorComboBox.SeparatorComboBox' from assembly 'Browser Chooser 2, Version=2.0.3.35882, Culture=neutral, PublicKeyToken=null'. ---> System.TypeLoadException: Could not load type 'SeparatorComboBox.SeparatorComboBox' from assembly 'Browser Chooser 2, Version=2.0.3.35882, Culture=neutral, PublicKeyToken=null'. at Browser_Chooser_2.frmOptions.InitializeComponent() at Browser_Chooser_2.frmOptions..ctor() --- End of inner exception stack trace --- at Browser_Chooser_2.My.MyProject.MyForms.Create__Instance__T at Browser_Chooser_2.My.MyProject.MyForms.get_frmOptions() at Browser_Chooser_2.frmMain.OpenOptions() at Browser_Chooser_2.frmMain.btnOptions_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.8009 (FX35W81RTMGDR.050727-8000) CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll

  12. Log in to comment