-
Notifications
You must be signed in to change notification settings - Fork 10.3k
NavigationException thrown in Static Server Render #55685
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
Comments
@mohiyo thanks for contacting us. What's likely happening is that you are breaking on first chance exceptions. NavigationException is thrown by the framework to trigger an SSR navigation, but it's caught internally. You should avoid capturing NavigationException. |
@javiercn even if I don't capture the exception it still gives this error. Can you point out what's the real reason for this exception? I never had Try/Catch block until I faced this exception, I want to get some sort of Inner Exception. |
I would like to ask how to deal with this problem. At present, it is only reported as "Exception of type 'Microsoft.AspNetCore.Components.NavigationException' was thrown." There is no hint of anything else. |
Uh oh!
There was an error while loading. Please reload this page.
I have a Login Form inside a Blazor Server App which is working fine with built-in functionality.
But now I am trying to solve a problem where I will be allowing Users to log in automatically when they reach from certain URL and with certain parameters, Without submitting a form
I tried this in my Login Component
This login Component is in a Static Server Render mode whereas after the successful SignIn, the User will be redirected to an Interactive Server Component.
But Navigation is not working and I am getting this exception
Originally posted by @mohiyo in #49472 (comment)
The text was updated successfully, but these errors were encountered: