AzureStorageExplorer icon indicating copy to clipboard operation
AzureStorageExplorer copied to clipboard

Unable to Sign In

Open dasaffro-msft opened this issue 8 months ago • 5 comments

Storage Explorer Version

1.38.0

Regression From

No response

Architecture

x64

Storage Explorer Build Number

No response

Platform

All

OS Version

No response

Bug Description

Opened ASE and noticed I was signed out and all of my previously linked shares are missing. When trying to sign in it will pend indefinitely in the "Starting sign in" loop (or the equivalent one for when I switch the sign-in location to default browser).

Steps to Reproduce

  1. Launch Storage Explorer
  2. "Sign in with Azure" --> Azure -- > Next

Actual Experience

Waiting indefinitely on "Starting sign in" or equivalent for other sign in methods

Expected Experience

Browser or other SSO prompt is initiated.

Additional Context

Tried upgrading from an older version, where I first noticed this (IIRC it was the October build) and that did not fix it. This was my first time logging into ASE since upgrading my OS, so it could possibly be an OS issue.

dasaffro-msft avatar Apr 23 '25 19:04 dasaffro-msft

Happy to collect and provide any necessary logs.

dasaffro-msft avatar Apr 23 '25 19:04 dasaffro-msft

Hi @dasaffro-msft. It sounds like you have tried signing in with all the different sign in methods, correct? Can you try following the steps in the troubleshooting docs to reset authentication and sign out before trying to sign in again?

If the above doesn't resolve the sign in issue can you share your authentication logs. The steps to do so are here.

richardMSFT avatar Apr 23 '25 23:04 richardMSFT

Run into the same issue. It seems Storage Explorer isn't happy with the presence of .Net 9 runtime. Here is the servicehub log:

05/28/2025 09:35:00 : Information : Log configuration: $SERVICEHUBTRACELEVEL=""
05/28/2025 09:35:00 : Error : HubController PID 27572 stderr: You must install .NET to run this application.

App: C:\Program Files\Microsoft Azure Storage Explorer\resources\app\ServiceHub\Controllers\microsoft-servicehub-controller\Microsoft.ServiceHub.Controller.exe
Architecture: x64
App host version: 8.0.13
.NET location: Not found

Learn more:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=win-x64&os=win10&apphost_version=8.0.13

My .Net runtime setup:

> dotnet --list-runtimes
Microsoft.AspNetCore.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

> dotnet --version
9.0.300

Tavriets avatar May 27 '25 21:05 Tavriets

Setting DOTNET_ROOT env. variable to C:\Program Files\dotnet fixed the problem for me (it was C:\Program Files\dotnet\shared for whatever reason)

Tavriets avatar May 27 '25 22:05 Tavriets

@dasaffro-msft Is this still an issue for you? Have you had a chance to review the troubleshooting guide or retrieve your authentication logs? Did @Tavriets's suggestion help?

craxal avatar Jun 06 '25 17:06 craxal

Closing due to inactivity. If this is still an issue, please respond with answeres to the above questions, and we can revisit.

craxal avatar Jul 28 '25 18:07 craxal

@craxal Yes, the suggestions helped. It looks like dotnet was not installed; after installing the latest everything got back into a good state. Thank you.

dasaffro-msft avatar Jul 28 '25 18:07 dasaffro-msft