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

[WebToolsE2E][Aspire] Refreshing the browser when running aspire 9.1 and aspire 8.2 project at the same time, displays an authentication login and errors in CMD. #6942

Open
vmykagapuz opened this issue Dec 13, 2024 · 0 comments
Labels
area-dashboard untriaged New issue has not been triaged

Comments

@vmykagapuz
Copy link

vmykagapuz commented Dec 13, 2024

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2
  2. Install latest-released VS 17.12.3 (with Aspire 9.0.0)

NOTE

  1. This issue doesnt reproduced when running 2 aspire 9.0 projects.
  2. This issue only reproduced for actions: refreshing the browser and changing localization in the settings.

REPRO STEPS

  1. Create .NET Aspire Starter App > .NET 9.0 (Standard Term Support) > Create
  2. Build and F5 (keep the project running)
  3. Create .NET Aspire Starter App > .NET 8.0 (Long Term Support) > Aspire 8.2 > Create
  4. Build and F5
  5. Open the browser for 9.0 project > refresh the page

ACTUAL
Refreshing the browser for 9.0 project, displays an aunthentication login in the dashboard.
Image

The error shows in CMD for 8.0 project
Image

Aspire.Hosting.Dashboard.Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery[7]
      An exception was thrown while deserializing the token.
      Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The antiforgery token could not be decrypted.
       ---> System.Security.Cryptography.CryptographicException: The payload was invalid. For more information go to https://aka.ms/aspnet/dataprotectionwarning
         at Microsoft.AspNetCore.DataProtection.Cng.CbcAuthenticatedEncryptor.DecryptImpl(Byte* pbCiphertext, UInt32 cbCiphertext, Byte* pbAdditionalAuthenticatedData, UInt32 cbAdditionalAuthenticatedData)
         at Microsoft.AspNetCore.DataProtection.Cng.Internal.CngAuthenticatedEncryptorBase.Decrypt(ArraySegment`1 ciphertext, ArraySegment`1 additionalAuthenticatedData)
         at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status)
         at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData)
         at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)
         --- End of inner exception stack trace ---
         at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)
         at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.GetCookieTokenDoesNotThrow(HttpContext httpContext)

EXPECTED
Running aspire 9.0 and aspire 8.2 project at the same time, can refresh browser without errors in the cmd.

@vmykagapuz vmykagapuz changed the title [WebToolsE2E][Aspire] After refreshing the browser when running aspire 9.1 and 8.2 project at the same time, displays an authentication login and errors in CMD. [WebToolsE2E][Aspire] After refreshing the browser when running aspire 9.1 and aspire 8.2 project at the same time, displays an authentication login and errors in CMD. Dec 13, 2024
@vmykagapuz vmykagapuz changed the title [WebToolsE2E][Aspire] After refreshing the browser when running aspire 9.1 and aspire 8.2 project at the same time, displays an authentication login and errors in CMD. [WebToolsE2E][Aspire] Refreshing the browser when running aspire 9.1 and aspire 8.2 project at the same time, displays an authentication login and errors in CMD. Dec 13, 2024
@joperezr joperezr added untriaged New issue has not been triaged area-dashboard labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dashboard untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

2 participants