Applicable to:
- Plesk for Windows
Symptoms
- Plesk Obsidian running on a Windows server
-
The error message
PLESK_INFO: aspnetcfg failed: Can't detect .NET version. Possible site does not use ASP.NET (Error code 1)
is displayed in the Plesk GUI when:
- opening ASP.NET settings in Plesk at Domains > example.com > ASP.NET Settings.
- changing password of the main FTP user at Domains > example.com > FTP Access
- issuing a Let's Encrypt certificate for a domain.
- attempting to open the page Domains > example.com > Hosting & DNS > Hosting
-
The affected website may also load with the following error message:
The page cannot be displayed because an internal server error has occurred.
Cause
Misconfiguration in IIS, during which both of the following settings are in place when checked:
- .NET CLR version is set to No Managed Code in application pool settings of the website in IIS Manager > HOSTNAME > Application Pools > example.com.
- Microsoft ASP.NET support is enabled in Plesk at Domains > example.com > Hosting & DNS > Hosting
Resolution
In order to resolve the IIS configuration issues, you should do the following:
-
Go to Domains > example.com > Hosting & DNS > Hosting
Note: If the Hosting tab is inaccessible, do the following to make it accessible:
- Connect to the server via RDP
- Go to IIS > HOSTNAME > Application Pools > example.com > double click on domain and switch the .NET CLR version from No Managed Code to .NET CLR v4
-
Disable the option Microsoft ASP.NET support and click Apply.
-
Enable the option Microsoft ASP.NET support back and click Apply.
Comments
0 comments
Please sign in to leave a comment.