Skip to content
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

NavigationManager Exception on Static Server Rendering #3927

Open
leigh-pointer opened this issue Mar 1, 2024 · 10 comments
Open

NavigationManager Exception on Static Server Rendering #3927

leigh-pointer opened this issue Mar 1, 2024 · 10 comments

Comments

@leigh-pointer
Copy link
Contributor

Created a new module.
Clicked the [x] code was halted.

CreateModuleDialog

@sbwalker
Copy link
Member

sbwalker commented Mar 1, 2024

exact same issue as #3909 - closing as this is a Blazor issue within Visual Studio which is logged here: dotnet/aspnetcore#53996

@sbwalker sbwalker closed this as completed Mar 1, 2024
@thabaum
Copy link
Contributor

thabaum commented Mar 1, 2024

@sbwalker maybe we should keep one of these open so that we don't get repeated issues?

zyhfish added a commit to zyhfish/oqtane.framework that referenced this issue Mar 3, 2024
@zyhfish
Copy link
Contributor

zyhfish commented Mar 3, 2024

I tried to change the method to async to avoid the exception, please check whether it can be merged, thx.

sbwalker added a commit that referenced this issue Mar 4, 2024
Fix #3927: change to async method to avoid the exception.
sbwalker added a commit that referenced this issue Mar 4, 2024
Revert "Fix #3927: change to async method to avoid the exception."
@sbwalker
Copy link
Member

sbwalker commented Mar 4, 2024

Re-opening so that we have a record of this known Microsoft Blazor issue

@sbwalker sbwalker reopened this Mar 4, 2024
@sbwalker
Copy link
Member

sbwalker commented Mar 4, 2024

@zyhfish you can try this suggestion: dotnet/aspnetcore#53996 (comment)

@jaruiz1961-ual
Copy link

The error is in the AdminContainer.razor file in the Theme folder, line 27 when the NavigatorManager.NavigateTo method is called, it throw a ASP Exception. It happens ever a windows is closed (in the same way).

@sbwalker
Copy link
Member

@jaruiz1961-ual this is a known problem when running Static Blazor in the Visual Studio debugger - see dotnet/aspnetcore#53996

@sbwalker sbwalker changed the title Closing Module Management 5.1.0 - Create Module Dialog using the [x] Navigation Exception on Static Server Rendering Apr 10, 2024
@sbwalker sbwalker changed the title Navigation Exception on Static Server Rendering NavigationManager Exception on Static Server Rendering Apr 29, 2024
@JohnGalt1717
Copy link

I'm not having this caught by vs.net all of the time with .net 9. Doesn't matter if I @Inject or use the new constructor injection the error is always thrown and there is nothing in the exception settings that allows me to ignore this one either.

@leigh-pointer
Copy link
Contributor Author

@JohnGalt1717 have a look here. I am sure this will help you https://www.youtube.com/watch?v=1lsjpfdqBk0&t=2321s

@JohnGalt1717
Copy link

@JohnGalt1717 have a look here. I am sure this will help you https://www.youtube.com/watch?v=1lsjpfdqBk0&t=2321s

Thanks.... gross.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants