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

Started by Suhitha, Sep 27, 2025, 07:13 AM

Previous topic - Next topic

Suhitha

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


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

1.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.