How to handle Blazor circuit errors

Posted 3 years ago by preetiislur
Edited 3 years ago
0

Hi, Im using Blazor server, When exceptions happens i'm getting reload erros, I need to force load the whole application to clear off that exceptions. How to handle this

  • 0

    You could remove the alert, but what you should do is resolve the issue that's causing the circuit errors. Removing the alert would still leave them in a disconnected state. The most likely reason for your circuit errors is that you are using DbContext instead of a DbContextFactory that allows you to new up an instance of the context. If it's still in use when you attempt to use it, it will throw a circuit error. I recommend checking this out: https://docs.microsoft.com/en-us/aspnet/core/blazor/blazor-server-ef-core?view=aspnetcore-5.0

    Posted 3 years ago by selliott Edited 3 years ago
Someone is typing...

Post a Reply

You must be logged in to add a new post.
Number of online users: 0
An error has occurred. This application may no longer respond until reloaded. Reload 🗙