-
Notifications
You must be signed in to change notification settings - Fork 546
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
Bug: Exception throw when close admin dashboard #3909
Comments
@zyhfish this is a known problem and is caused by Blazor in Static rendering running within Visual Studio. The recommendation from Microsoft is to configure Visual Studio to not break on this type of exception. See this issue: dotnet/aspnetcore#53996 |
@zyhfish so the problem is that even if you catch the exception in code, the NavigationManager will fail to redirect to the desired Url:
and if you change the AdminContainer.razor to use the extension method:
The exception will be ignored - but you will not be redirected to the desired location. It seems that the only way to deal with this currently is to suppress the error in Visual Studio and then it will work as expected. |
Closing as there is no solution in .NET 8 |
Reproduce Steps:
Expected Result:
the dashboard should be closed.
Actually Result:
Exception thrown:
The text was updated successfully, but these errors were encountered: