When my Application start I recived this error
An error occurred when configuring the exception handler middleware. Either the 'ExceptionHandlingPath' or the 'ExceptionHandler' property must be set in 'UseExceptionHandler()'. Alternatively, set one of the aforementioned properties in 'Startup.ConfigureServices' as follows: 'services.AddExceptionHandler(options => { ... });' or configure to generate a 'ProblemDetails' response in 'service.AddProblemDetails()'.
This is part of my WebApplicationExtensions class
https://pastebin.com/VSHvS3QH
I used Hellang.Middleware.ProblemDetails library, the application is written with .NET8
I have other applications with the same options and I have never received this error