79163903

Date: 2024-11-06 18:55:53
Score: 1.5
Natty:
Report link

Solved it, the call to UseStatusCodePagesWithReExecute needs to go before calling UseRouting. That way, I can use UseExceptionHandler without 404s going unhandled by the ErrorController. It's worth noting that if you use UseExceptionHandler, the controller will need to have logic to log the exception, else, it just gets swallowed.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: mooseburger