AzureStorageExplorer icon indicating copy to clipboard operation
AzureStorageExplorer copied to clipboard

Error on launch: Configuration system failed to initialize

Open dfran02 opened this issue 2 years ago • 8 comments

Windows 10 Enterprise Microsoft .NET Framework 4.8.1/4.8/4.7.2 Storage Explorer 1.25.0/1.24.0/1.24.3

Hi, When I try to open Storage Explorer, I receive the error:

The authentication library used by Storage Explorer has failed to start properly. Please ensure you have .NET Framework 4.7.2 or greater installed. If .NET Framework 4.7.2 or greater is already installed then refer to the troubleshooting guide for help. Verbose authentication logging has been enabled.

Error:Configuration system failed to initialize (ErrorKind: Error HResult: 80131500)

When I close the error, Storage Explorer also closes.

I've tried different versions of ASE and installed different versions of the .NET SDK, but get the same error every time.

I tried closing ASE and Visual Studio, clearing logs, then reopening ASE. The logs: azure_storage_explorer_1.25_logs.zip

dfran02 avatar Aug 10 '22 19:08 dfran02

I've passed your logs onto the responsible team. Will get back to you as soon as possible.

MRayermannMSFT avatar Aug 10 '22 23:08 MRayermannMSFT

@dfran02 have you installed mono on your machine?

MRayermannMSFT avatar Aug 11 '22 16:08 MRayermannMSFT

No, but perhaps some other frameworks I have installed may clash: image

dfran02 avatar Aug 11 '22 17:08 dfran02

Hmmmmmmmmmmm. Can you check C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config (if you don't have a v4.0.30319 then look for some other v4 folder) and look for any proxy entries? It should have just this

<section name="defaultProxy" type="System.Net.Configuration.DefaultProxySection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

MRayermannMSFT avatar Aug 11 '22 17:08 MRayermannMSFT

yes, I see that entry.

dfran02 avatar Aug 11 '22 18:08 dfran02

And no other proxy entries? Ok well then let's just try:

  1. Open <Storage Explorer install dir>\resources\app\ServiceHub\MSAL-Services\IdentityService\Microsoft.Developer.IdentityService.exe.config
  2. Delete the line with <defaultProxy useDefaultCredentials="true" />
  3. Try running Storage Explorer again
  4. If it fails, share the new set of authentication logs with us

MRayermannMSFT avatar Aug 11 '22 22:08 MRayermannMSFT

That worked! Any chance you could explain why it worked?

dfran02 avatar Aug 12 '22 16:08 dfran02

To be honest....nope! Something somewhere didn't like that section in the config. 🤷

MRayermannMSFT avatar Aug 12 '22 21:08 MRayermannMSFT

Going to close this as mitigated now. Please open a new issue if something else comes up. We don't look at closed issues very frequently.

MRayermannMSFT avatar Aug 15 '22 17:08 MRayermannMSFT