Skip to main content
A newer version of this page is available. .

An Unhandled Exception on the Current Circuit

You may see the following error message about an exception on the current circuit:

There was an unhandled exception on the current circuit, so this circuit will be terminated. For more information, turn on detailed exceptions in ‘CircuitOptions.DetailedErrors’.

.NET 5.0

To get more information about the error, add the following code to the ConfigureServices method declared in the Startup.cs file:

services.AddServerSideBlazor().AddCircuitOptions(options => { options.DetailedErrors = true; });

.NET 6.0

To get more information about the error, add the following code to the Program.cs file:

builder.Services.AddServerSideBlazor().AddCircuitOptions(options => { options.DetailedErrors = true; });