site image
Andrew Lock avatar

Andrew Lock

Error Handling
  1. Loading...
  2. Sponsored by Nick Chapsas—Want to learn how to build elegant REST APIs in .NET? Get 5% off Nick's latest course "From Zero to Hero: REST APIs in .NET"!

    From Zero to Hero: REST APIs in .NET
  3. ASP.NET Core in Action, Third Edition

    My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

  4. Banner image for Handling Web API Exceptions with ProblemDetails middleware

    Handling Web API Exceptions with ProblemDetails middleware

    In this post I describe the ProblemDetailsMiddleware by Kristian Hellang that can be used to return ProblemDetails when an exception occurs in an API project.…

  5. Banner image for Creating a custom ErrorHandlerMiddleware function

    Creating a custom ErrorHandlerMiddleware function

    In this post I show how to customise the ExceptionHandlerMiddleware to create custom responses when an error occurs in your middleware pipeline…

     in  ASP.NET Core Error Handling
  6. Banner image for When ASP.NET Core can't find your controller: debugging application parts

    When ASP.NET Core can't find your controller: debugging application parts

    In this post I describe application parts, how ASP.NET Core uses them to find the controllers in your app, and how to list them.…

     in  ASP.NET Core Error Handling MVC
  7. Banner image for Retrieving the path that generated an error with the StatusCodePages Middleware

    Retrieving the path that generated an error with the StatusCodePages Middleware

    In this post, I show how you can obtain the original path that triggered an error status code when using the StatusCodePagesMiddleware's re-execute feature.…

     in  ASP.NET Core Middleware Error Handling
  8. Banner image for Re-execute the middleware pipeline with the StatusCodePages Middleware to create custom error pages

    Re-execute the middleware pipeline with the StatusCodePages Middleware to create custom error pages

    In this post I show how to create custom error pages with the StatusCodePagesMiddleware by re-executing the middleware pipeline.…

     in  ASP.NET Core Middleware Error Handling
Andrew Lock | .Net Escapades
Want an email when
there's new posts?