Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Error handling in ConfigureServices

$
0
0

Hi, 

what is the best way to handle exceptions inside ConfigureServices method?

If I use UseDeveloperExceptionPage I can see the exception details, but if I use UseExceptionHandler the correct handler (action) is not invoked and the generic error page is shown. Exception handler works fine on all other exceptions (inside controllers).

Thanks 


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>