How to turn on CircuitOptions.DetailedErrors?

后端 未结 3 1862
耶瑟儿~
耶瑟儿~ 2021-02-12 00:43

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条回答
  •  [愿得一人]
    2021-02-12 01:10

    For me it was slightly different

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

提交回复
热议问题