How to turn on CircuitOptions.DetailedErrors?

后端 未结 3 1850
北荒
北荒 2021-02-12 00:17

I\'m getting this message in the console when running a server-side Blazor app:

Error: There was an unhandled exception on the current circuit, so this

3条回答
  •  旧时难觅i
    2021-02-12 01:00

    For me it was slightly different

    public static IHostBuilder CreateHostBuilder(string[] args) =>
        Host.CreateDefaultBuilder(args)
            .ConfigureWebHostDefaults(webBuilder =>
            {
                webBuilder.UseSetting(WebHostDefaults.DetailedErrorsKey, "true");
                webBuilder.UseStartup();
            });
    

提交回复
热议问题