Monday, November 25, 2019

Run ASP.NET CORE App in Development Mode

Getting the following message and need to run ASP.NET Core app in Dev Mode...

Development Mode
Swapping to the Development environment displays detailed information about the error that occurred.
The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app.

1. Go to IIS server / your website root
2. Open Web.Config file
3. Add the following environment variable...

 4. Save and reload page