-
Notifications
You must be signed in to change notification settings - Fork 10.3k
HttpNavigationManager already initialized on Blazor SSR. #49456
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
Related scenario: #49853 |
Thanks for reporting this, @benjaminsampica I tried to reproduce this with the current RC1 build and was not able to do so. Specifically,
The result I got was the exception message that I had added myself in step 2, which is the desired behavior. I didn't get "'HttpNavigationManager' already initialized.". Are you able to try your exact repro case again with the RC1 release, and if you can still recreate the problem, give us more details on how to do so? Thanks! |
Hi @benjaminsampica. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@SteveSandersonMS I'm still seeing this with the 8.0.0-rc2 build from here . I updated the above repo link with a nuget.config that allows for rc2 and showcases the problem. For clarity, the actual exception is thrown, but an exception is thrown while attempting to redirect as well and I get a 500 instead of being redirected to the error page. Here's the entire stacktrace.
Here's the problem inside of that.
|
Thanks @benjaminsampica! Now I understand the scenario and have been able to repro it. On investigation this is a nontrivial thing so I've written up some details at #50287 and will use that to track this. Closing this one now in favour of #50287. |
Is there an existing issue for this?
Describe the bug
I'm trying to use the
UseExceptionHandler
middleware to handle exceptions thrown when Blazor server-side rendering pages and am receiving an unexpected error when the middleware executes.Expected Behavior
The request re-executes and I'm sent to my error page.
Steps To Reproduce
dotnet new blazor
/Error
page (the template is missing this page despite having the exception handler go there).Development
environment.These steps in a repo -> https://github.com/benjaminsampica/BlazorServerSideRendering
Exceptions (if any)
.NET Version
.NET 8 preview 6
Anything else?
No response
The text was updated successfully, but these errors were encountered: