oqtane / oqtane.framework

CMS & Application Framework for Blazor & .NET MAUI
http://www.oqtane.org
MIT License
1.9k stars 551 forks source link

NavigationManager Exception on Static Server Rendering #3927

Open leigh-pointer opened 9 months ago

leigh-pointer commented 9 months ago

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

CreateModuleDialog

sbwalker commented 9 months ago

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

thabaum commented 9 months ago

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

zyhfish commented 9 months ago

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

sbwalker commented 9 months ago

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

sbwalker commented 9 months ago

@zyhfish you can try this suggestion: https://github.com/dotnet/aspnetcore/issues/53996#issuecomment-1976934727

jaruiz1961-ual commented 8 months ago

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 commented 8 months ago

@jaruiz1961-ual this is a known problem when running Static Blazor in the Visual Studio debugger - see https://github.com/dotnet/aspnetcore/issues/53996

JohnGalt1717 commented 21 hours ago

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 commented 21 hours ago

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

JohnGalt1717 commented 21 hours ago

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

Thanks.... gross.