Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppHost asks for logon token but doesn't provide it #4130

Open
paulomorgado opened this issue May 9, 2024 · 7 comments
Open

AppHost asks for logon token but doesn't provide it #4130

paulomorgado opened this issue May 9, 2024 · 7 comments

Comments

@paulomorgado
Copy link

[8.0.0-preview.7.24251.11]

Every now and then, the AppHost asks for logon token but doesn't provide it.

Even if DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS is set to true, an unknown logon token is requested.

@paulomorgado
Copy link
Author

Found a terminal window for "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\CommonExtensions\Platform\Debugger\VsDebugConsole.exe" with:

[process exited with code 4294967295 (0xffffffff)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

@paulomorgado
Copy link
Author

Using Visual Studio 2022 17.9.6 doesn't launch that terminal window, but has the same behavior.

The only think that the AppHost output shows is:

dbug: Microsoft.Extensions.Hosting.Internal.Host[1]
      Hosting starting
dbug: Microsoft.Extensions.Hosting.Internal.Host[1]
      Hosting starting
dbug: Microsoft.Extensions.Hosting.Internal.Host[2]
      Hosting started
dbug: Microsoft.Extensions.Hosting.Internal.Host[2]
      Hosting started

@paulomorgado
Copy link
Author

paulomorgado commented May 9, 2024

After a reboot, the dashboard was launched with https://localhost:17182/login?t=23e304592070eb1f5895f99931ac1b04, but that token is not accepted.

Unexpected error when validating the token

Removing

"DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS": "true",

from launchSettings.json solved it. For now.

How can I diagnose this?

@timheuer
Copy link
Member

timheuer commented May 9, 2024

@paulomorgado just confirming did you update the apphost package as well in the project?

@paulomorgado
Copy link
Author

@timheuer, updated everything.

This seems to be environmental, but I haven't been able to figure out where the problem is.

@DamianEdwards
Copy link
Member

Can you share output of running dotnet --list-sdks and dotnet workload list?

@paulomorgado
Copy link
Author

 λ dotnet --list-sdks
6.0.421 [C:\Program Files\dotnet\sdk]
7.0.118 [C:\Program Files\dotnet\sdk]
8.0.204 [C:\Program Files\dotnet\sdk]
8.0.300-preview.24203.14 [C:\Program Files\dotnet\sdk]
 λ dotnet workload list

Installed Workload Id      Manifest Version                      Installation Source
-------------------------------------------------------------------------------------------------------------
aspire                     8.0.0-preview.7.24251.11/8.0.100      SDK 8.0.300-preview.24203, VS 17.10.34902.84

But:

 λ dotnet workload update

Updated advertising manifest microsoft.net.sdk.maccatalyst.
Updated advertising manifest microsoft.net.workload.mono.toolchain.net7.
Updated advertising manifest microsoft.net.workload.mono.toolchain.current.
Updated advertising manifest microsoft.net.sdk.android.
Updated advertising manifest microsoft.net.workload.emscripten.net7.
Updated advertising manifest microsoft.net.sdk.maui.
Updated advertising manifest microsoft.net.sdk.ios.
Updated advertising manifest microsoft.net.sdk.aspire.
Updated advertising manifest microsoft.net.workload.emscripten.current.
Updated advertising manifest microsoft.net.workload.mono.toolchain.net6.
Updated advertising manifest microsoft.net.sdk.macos.
Updated advertising manifest microsoft.net.sdk.tvos.
Updated advertising manifest microsoft.net.workload.emscripten.net6.
Downloading Aspire.Hosting.Sdk.Msi.x64 (8.0.0-preview.7.24251.11)
Downloading Aspire.ProjectTemplates.Msi.x64 (8.0.0-preview.7.24251.11)
Downloading Aspire.Hosting.Orchestration.win-x64.Msi.x64 (8.0.0-preview.7.24251.11)
Downloading Aspire.Hosting.Msi.x64 (8.0.0-preview.7.24251.11)
Downloading Aspire.Dashboard.Sdk.win-x64.Msi.x64 (8.0.0-preview.7.24251.11)

Successfully updated workload(s): aspire.

  >  C:\Temp\k8s\awscerts
 λ dotnet workload list

Installed Workload Id      Manifest Version                      Installation Source
-------------------------------------------------------------------------------------------------------------
aspire                     8.0.0-preview.7.24251.11/8.0.100      SDK 8.0.300-preview.24203, VS 17.10.34902.84

Use `dotnet workload search` to find additional workloads to install.

I keep forgetting that I need to update the workload on every new version.

Let's see if this solves it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants