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

Started by Suhitha, Aug 16, 2025, 02:43 AM

Previous topic - Next topic

Suhitha

Applicable to:

  • Plesk for Windows



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:

Command prompt
plesk repair web example.com -y

Note: change example.com to the domain in question.