Update web.config with an <environmentVariables> section under <aspNetCore>
<configuration>
<system.webServer>
<aspNetCore .....>
<environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
</environmentVariables>
</aspNetCore>
</system.webServer>
</configuration>
Alternatively, set it from your Control Panel > Advance > Environment Variables, please see details
Article ID: 1869, Created: August 29, 2016 at 9:36 AM, Modified: May 12, 2021 at 8:28 PM