eShop icon indicating copy to clipboard operation
eShop copied to clipboard

[WebToolsE2E][Aspire] When running the eshop.web solution, logging in to the user account will throw an exception: 'Microsoft.AspNetCore.Components.NavigationException' was thrown.

Open v-cazhang opened this issue 1 year ago • 0 comments

REGRESSION INFO: Also repro on Aspire 8.0.0-preview.2.23619.3

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install VS 17.10 Preview 1 [latest build, includes Aspire 8.0.0-preview.3.24105.21 ]
  3. Apply NuGet Feeds
  4. Install Docker Desktop for Windows

REPRO STEPS

  1. Clone eShop repo from aspire3 branch
  2. Update NuGet.config to use the correct feeds
  3. Open eShop.web.slnf
  4. Build and run solution locally
  5. In the Dashboard, click endpoint of webapp, log in with the account.

Notes:

  1. This issue also repro on webhooksclient project.
  2. After met this issue, click 'Continue' in the VS, the account will be logged.

ACTUAL: It will throw an exception when clicking 'log in'. image Microsoft.AspNetCore.Components.NavigationException HResult=0x80131500 Message=Exception of type 'Microsoft.AspNetCore.Components.NavigationException' was thrown. Source=Microsoft.AspNetCore.Components.Server StackTrace: at Microsoft.AspNetCore.Components.Server.Circuits.RemoteNavigationManager.NavigateToCore(String uri, NavigationOptions options) at Microsoft.AspNetCore.Components.NavigationManager.NavigateToCore(String uri, Boolean forceLoad) at Microsoft.AspNetCore.Components.NavigationManager.NavigateTo(String uri, Boolean forceLoad, Boolean replace) at eShop.WebApp.Components.Pages.User.LogIn.OnInitialized() in C:\Users\v-cazhang\Desktop\eshop\src\WebApp\Components\Pages\User\LogIn.razor:line 15 at Microsoft.AspNetCore.Components.ComponentBase.<RunInitAndSetParametersAsync>d__21.MoveNext()

EXPECTED Login without error.

v-cazhang avatar Feb 08 '24 09:02 v-cazhang