How does unhandled-exception behavior differ between Blazor Server and Blazor WebAssembly?

Last updated 5 July 2026

  • Blazor Server: an unhandled exception terminates the circuit (state may be corrupt), the UI freezes and the user must reload. Details stay on the server by default.

  • WebAssembly: no circuit to drop, so the error is logged to the browser console and the app may keep running in a broken state. Details are visible client-side.

  • In both, wrap regions in <ErrorBoundary> for fallback UI, customize blazor-error-ui, and log via ILogger.

  • https://embarkingonvoyage.com/blog/how-error-handling-works-in-blazor-server-vs-webassembly/
  • https://medium.com/@nwonahr/understanding-the-key-differences-between-blazor-server-and-blazor-webassembly-14eb9d93a15f
  • https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/handle-errors?view=aspnetcore-10.0
  • https://www.daveabrock.com/2021/07/21/blazor-error-boundaries/
  • https://github.com/dotnet/aspnetcore/issues/30940
  • https://www.telerik.com/blogs/blazor-basics-handling-errors-exception-logging-blazor-applications
All Blazor interview questions