Blazor: An unhandled error has occurred. Reload 🗙
A Blazor component threw an exception; Blazor Server tears down the circuit (or WebAssembly logs to the console) and shows the reload bar.
Seen on:
.NET
Meaning
Look in the browser console (WASM) or server logs (Server) for the real exception. Enable detailed errors in development. Use ErrorBoundary to contain failures in parts of the UI.
Common causes
- Exception in component lifecycle (OnInitializedAsync)
- Null data rendered before load completes
- JS interop errors
- Disconnected circuit on Blazor Server
⚡ Quick fix
- Check console/server logs
- Enable DetailedErrors in development
- Wrap risky components in <ErrorBoundary>
Detailed fix by platform
C#
builder.Services.AddServerSideBlazor().AddCircuitOptions(o => o.DetailedErrors = builder.Environment.IsDevelopment());
Razor
- csharp
<ErrorBoundary> <ChildContent><OrdersGrid /></ChildContent> <ErrorContent>Something went wrong loading orders.</ErrorContent> </ErrorBoundary>
How to diagnose
- Logs — Exception and component
- Data — Null before loaded?
- Interop — JS errors?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- 500.19 HTTP Error 500.19 - Internal Server Error: The requested page cannot be accessed because the related configuration data for the page is invalid
- antiforgery token could not be decrypted ASP.NET Core: The antiforgery token could not be decrypted / The required antiforgery cookie is not present (400 Bad Request)
- BadTokenException WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
Most viewed in .NET
Other ways to find it
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 7 Oct 2026