Question: .NET Core environment variables do not persist on a Plesk server
Applicable to:Symptoms- After saving .NET Core environment variables, they are not recognized or visible through the application.
- Opening the Environment Variables window shows that no variables had been saved or persisted.
- There are no visible errors on Plesk UI or panel.log.
Cause
Missing ASP.net compilation temporary directory for domain.
Resolution1.Connect to the server via RDP
2.Install the latest Plesk update, if available.
3.Run the following command on an elevated command prompt:
# plesk repair web example.com -y
Note: change example.com to the domain in question.