.NET Core environment variables do not persist on a Plesk server

Started by Dinesh, Nov 09, 2024, 06:42 AM

Previous topic - Next topic

Dinesh

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.

Resolution
  • Connect to the server via RDP
  • Install the latest Plesk update, if available.
  • Run the following command on an elevated command prompt:
plesk repair web example.com -y
Note: change example.com to the domain in question.