IIS : An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode

The following error occurs, when browsing a website on Parallels Plesk server:

HTTP Error 500.24 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
0x80070032

The website was designed in Classic pipeline mode, but an application pool assigned to the site is in Integrated pipeline mode which causes a conflict.
You can resolve it by two ways:
Solution-1
Disable Integrated Mode feature in:
“%plesk_vhosts%”\domain.tld\httpdocs\web.config by adding following section before </Configuration> tag

<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
</system.webServer>

Solution-2
You can simply do it by following below steps:
1.Through IIS7 Manager Switch the application of the website to an application pool  using Classic .NET mode .
2. From the IIS7 Manager, right click the respective application pool >> click Advance Settings.
3. Change Integration to Classic from the Managed Pipeline Mode.
4. Click Ok.
Done.