Skip to main content

Application Pool Configuration

cd C:\\Windows\\system32\\inetsrv

.\appcmd.exe set config -section:system.applicationHost/applicationPools /+"[name='LanePthTrain'].environmentVariables.[name='ASPNETCORE_ENVIRONMENT',value='LanePthTrain']" /commit:apphost

This command will set the ASPNETCORE_ENVIRONMENT environment variable to LanePthTrain for the Lane application pool. This is required for the application to run in the correct environment.

You can check that this is set correctly by running the following command:

./appcmd.exe list apppool "LanePthTrain" /text:*