Controlling the Hosting Environment

Learn about the automatic handling of exceptions in development mode and setting the hosting environment for local development.

In ASP.NET Core 5 and earlier, the project template set a rule to say that while in development mode, any unhandled exceptions will be shown in the browser window for the developer to see the details of the exception, as shown in the following code:

Get hands-on with 1400+ tech skills courses.