Page MenuHomePhabricator

I can't log into AWB
Open, Needs TriagePublic

Description

I can't log in; whenever I do, I get this error message.

description:

workaround:

Exception:ConfigurationErrorsException
Message:Configuration system failed to initialize
Call stack:<pre> at System.Configuration.ConfigurationManager.PrepareConfigSystem()
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Web.Configuration.ClientRuntimeConfig.GetSectionObject(String sectionName)
at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
at System.Web.Configuration.RuntimeConfig.get_HttpRuntime()
at System.Web.Util.HttpEncoder.GetCustomEncoderFromConfig()
at System.Lazy`1.CreateValue()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Lazy`1.get_Value()
at System.Web.Util.HttpEncoder.get_Current()
at WikiFunctions.API.ApiEdit.BuildQuery(Dictionary`2 request)
at WikiFunctions.API.ApiEdit.BuildUrl(Dictionary`2 request, ActionOptions options)
at WikiFunctions.API.ApiEdit.HttpPost(Dictionary`2 get, Dictionary`2 post, ActionOptions options)
at WikiFunctions.API.ApiEdit.Login(String username, String password, String domain)
at WikiFunctions.Profiles.AWBProfilesForm.PerformLogin(String username, String password)</pre>
Inner exception:ConfigurationErrorsException
Message:Unrecognized configuration section userSettings. (C:\Users\emily\AppData\Local\AutoWikiBrowser\AutoWikiBrowser.exe_Url_ayvjxxiffaueipj10z4cqkqtwad3xdu5\6.1.0.1\user.config line 3)
Call stack:<pre> at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)</pre>

OS: Microsoft Windows NT 6.2.9200.0
version: AutoWikiBrowser (6.1.0.1), WikiFunctions (6.1.0.1), revision 12353 (2019-09-17 21:16:42)
net: 4.0.30319.42000
duplicate:
site: https://en.wikipedia.org

Event Timeline

OK, @Idreamofhorses error message refers to file C:\Users\emily\AppData\Local\AutoWikiBrowser\AutoWikiBrowser.exe_Url_ayvjxxiffaueipj10z4cqkqtwad3xdu5\6.1.0.1\user.config so please delete that and try opening AWB again - it is a config file not your AWB settings.

I ended up deleting and reinstalling AWB. It worked, which makes sense, since it would delete the user configs file. Next time I get a similar message, I'll take the less drastic route of just deleting the user configs file.

Thanks, Rjwilmsi. If this works, it'll turn out to be a big help.

I'm not sure how "deleting and reinstalling AWB" is really drastic... To install it's download a ZIP and unzip it. To delete, you just delete the folder.

Deleting the folder with AWB in, wouldn't delete files like C:\Users\emily\AppData\Local\AutoWikiBrowser\AutoWikiBrowser.exe_Url_ayvjxxiffaueipj10z4cqkqtwad3xdu5\6.1.0.1\user.config...

To clarify, I use virtualbox, so I know I can delete more files without doing irrepairable damage. After all, if I feel nervous, I can take a snapshot before engaging the flamethrower.

Closing due to lack of test case / input

Rich_Farmbrough subscribed.

OK I had the same issue. The config file was:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <userSettings>
        <AutoWikiBrowser.Properties.Settings>
            <setting name="WindowLocation" serializeAs="String">
                <value>386, -1491</value>
            </setting>
            <setting name="WindowSize" serializeAs="String">
                <value>925, 717</value>
            </setting>
            <setting name="WindowState" serializeAs="String">
                <value>Normal</value>
            </setting>
            <setting name="Privacy" serializeAs="String">
                <value>True</value>
            </setting>
            <setting name="CustomWikis" serializeAs="String">
                <value />
            </setting>
        </AutoWikiBrowser.Properties.Settings>
    </userSettings>
</configuration>

But when I renamed it and restarted (and closed) 6.2.1.1 I got:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <configSections>
        <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=<redacted>" >
            <section name="AutoWikiBrowser.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=<redacted>" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
        </sectionGroup>
    </configSections>
    <userSettings>
        <AutoWikiBrowser.Properties.Settings>
            <setting name="WindowLocation" serializeAs="String">
                <value>-653, -1178</value>
            </setting>
            <setting name="WindowState" serializeAs="String">
                <value>Normal</value>
            </setting>
            <setting name="AskForTerminate" serializeAs="String">
                <value>True</value>
            </setting>
            <setting name="WindowSize" serializeAs="String">
                <value>925, 717</value>
            </setting>
        </AutoWikiBrowser.Properties.Settings>
    </userSettings>
</configuration>