DeveloperExceptionPageMiddleware
DeveloperExceptionPageMiddleware is ASP.NET Core middleware that catches unhandled pipeline exceptions and generates a detailed diagnostic error page for developers.
ASP.NET Core in Action, 3e
A developer exception page is an ASP.NET Core diagnostic page that displays detailed information about an unhandled exception during development.
- How it is used
- Provides quick diagnostic feedback for unhandled request exceptions during development.
- How deep it goes
- Explains exception capture, diagnostic page contents, registration, and production risks without building custom middleware.
- Examples
- Shows a diagnostic page with stack trace and request details, plus a conditional production handler using an /error endpoint.
- What you can do after
- Diagnose/debug request exceptions using the developer exception page and select a safer handler for production.
Read how ASP.NET Core in Action, 3e explains DeveloperExceptionPageMiddleware →
Building Web APIs with ASP.NET Core
DeveloperExceptionPageMiddleware is ASP.NET Core middleware that captures pipeline exceptions and generates an HTML page containing detailed diagnostic information.
- How it is used
- Handles development-time HTTP pipeline failures by presenting detailed diagnostic information to developers.
- How deep it goes
- Explains synchronous and asynchronous exception capture, diagnostic contents, environment selection, and a verification endpoint.
- Examples
- Uses Program.cs configuration and test endpoints that throw Exception("test") to demonstrate generated error responses.
- What you can do after
- Diagnose/debug with it by enabling detailed development errors and routing nondevelopment failures through /error.
Read how Building Web APIs with ASP.NET Core explains DeveloperExceptionPageMiddleware →
Also covered in
What to know first
- stack traceA stack trace is a diagnostic record of the active or recently unwound function or method calls at a point in program execution, often including source locations.
Related concepts
- request pipelineuses · A request pipeline is an ordered sequence of processing components through which HTTP requests and their responses pass in a web application.
- middlewarekind of · Middleware is software that mediates communication or processing between components, often by intercepting, transforming, or coordinating operations in a pipeline.
- WebApplicationconfigured by · A framework type that represents a web application and provides application-level configuration or lifecycle capabilities.
- ExceptionHandlerMiddlewarealternative to · ExceptionHandlerMiddleware is ASP.NET Core HTTP middleware that intercepts unhandled exceptions and generates or redirects to an error response.
- HTMLproduces · HTML is the standard markup language for structuring content and elements in documents on the web.
- Swagger UIcontrasts with · Swagger UI is a web-based tool that renders OpenAPI descriptions as interactive documentation for exploring and testing APIs.
Questions about DeveloperExceptionPageMiddleware
What is DeveloperExceptionPageMiddleware?
DeveloperExceptionPageMiddleware is ASP.NET Core middleware that catches unhandled pipeline exceptions and generates a detailed diagnostic error page for developers.
Which Manning books explain DeveloperExceptionPageMiddleware?
ASP.NET Core in Action, 3e and Building Web APIs with ASP.NET Core.
What should I know before learning DeveloperExceptionPageMiddleware?
Manning books that teach DeveloperExceptionPageMiddleware usually introduce stack trace first.
What is the difference between DeveloperExceptionPageMiddleware and ExceptionHandlerMiddleware?
DeveloperExceptionPageMiddleware is ASP.NET Core middleware that catches unhandled pipeline exceptions and generates a detailed diagnostic error page for developers. ExceptionHandlerMiddleware is ASP.NET Core HTTP middleware that intercepts unhandled exceptions and generates or redirects to an error response.
What is DeveloperExceptionPageMiddleware a kind of?
DeveloperExceptionPageMiddleware is a kind of middleware. Middleware is software that mediates communication or processing between components, often by intercepting, transforming, or coordinating operations in a pipeline.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

