C
C#4mo ago
Johannes M

NavigationManager.NavigateTo() exception - Blazor SSR .NET 8

I keep getting this error when I try navigating to another page after submitting a form
Microsoft.AspNetCore.Components.NavigationException: Exception of type 'Microsoft.AspNetCore.Components.NavigationException' was thrown.
at Microsoft.AspNetCore.Components.Endpoints.HttpNavigationManager.NavigateToCore(String uri, Boolean forceLoad)
at Microsoft.AspNetCore.Components.NavigationManager.NavigateTo(String uri, Boolean forceLoad, Boolean replace)
at MyApp.Pages.CompleteProfile.PropertyInfoForm.SubmitForm()
Microsoft.AspNetCore.Components.NavigationException: Exception of type 'Microsoft.AspNetCore.Components.NavigationException' was thrown.
at Microsoft.AspNetCore.Components.Endpoints.HttpNavigationManager.NavigateToCore(String uri, Boolean forceLoad)
at Microsoft.AspNetCore.Components.NavigationManager.NavigateTo(String uri, Boolean forceLoad, Boolean replace)
at MyApp.Pages.CompleteProfile.PropertyInfoForm.SubmitForm()
1 Reply
mindhardt
mindhardt4mo ago
This is fine, navigation is now done with this exception for a number of reasons This is treated by Blazor as a navigation