- Plesk for Windows
The website is inaccessible, and a similar error is displayed in browser:
PLESK_INFO: Server Error in '/' Application.
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Version Information below the error shows that the .NET Framework 2.0 is being used:
PLESK_INFO: Version Information: Microsoft .NET Framework Version:2.0.50727.8745; ASP.NET Version:2.0.50727.8745
targetFramework attribute was added in .NET Framework 4.0.
In Plesk go to Domains > example.com > Hosting Settings.
Change Microsoft ASP.NET support version to 4.x.
Apply the changes.
Note: If Microsoft ASP.NET support version is already set to 4.x, change to a different one, apply the changes and then set it back to 4.x