zumoshi / BrowserSelect

Browser Select is a utility to dynamically select the browser you want instead of just having one default for all links.
GNU General Public License v2.0
289 stars 39 forks source link

DataGridViewComboBoxCell value is not valid #51

Closed igvk closed 5 years ago

igvk commented 5 years ago

Here is the error I get: DataGridView Default Error Dialog The following exception occurred in the DataGridView: System.ArgumentException: DataGridViewComboBoxCell value is not valid. To replace this default dialog please handle the DataError event.

Probably due to changing Firefox install path. Now I am unable to change Settings - the error is reappearing after dismissing.

zumoshi commented 5 years ago

Hi,

Yes, the current version doesn't handle a browser used for rules being uninstalled/changed very well. Until an update is released to fix this issue you can manually edit the following file as a workaround:

C:\Users\[USERNAME]\AppData\Local\BrowserSelect\BrowserSelect.exe_Url_4j4dimlkqsgapflatinf2e2ay1t1qfzx\1.4.0.0\user.config

Look for a section like this inside the file:

<setting name="AutoBrowser" serializeAs="Xml">
    <value>
        <ArrayOfString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
             <string>*.reddit.com[#!][$~][?_]Chrome</string>
        </ArrayOfString>
    </value>
</setting>

Then find the line that has the old browser and remove it.

I'm going to close this issue because it's a duplicate of #46 .