[WebToolsE2E][Aspire] When running the eshop.web solution, logging in to the user account will throw an exception: 'Microsoft.AspNetCore.Components.NavigationException' was thrown.
REGRESSION INFO: Also repro on Aspire 8.0.0-preview.2.23619.3
INSTALL STEPS
- Clean machine: Win11 x64 23h2 ENU
- Install VS 17.10 Preview 1 [latest build, includes Aspire 8.0.0-preview.3.24105.21 ]
- Apply NuGet Feeds
- Install Docker Desktop for Windows
REPRO STEPS
- Clone eShop repo from aspire3 branch
- Update NuGet.config to use the correct feeds
- Open eShop.web.slnf
- Build and run solution locally
- In the Dashboard, click endpoint of webapp, log in with the account.
Notes:
- This issue also repro on webhooksclient project.
- After met this issue, click 'Continue' in the VS, the account will be logged.
ACTUAL:
It will throw an exception when clicking 'log in'.
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.