When you deploy new web application in IIS and you may get following error.
HTTP Error 500.22 – Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
First and foremost try you can do is :
Set “Default Web Site” and “Classic .NET AppPool” to your application path and application pool name.
Secondly make sure you need to have Integrated framework to run your application not classic one. Else change your application pool to classic.
- Control Panel
- Administrative Tools
- IIS Manager
- Click on Application
- Basic Settings
- change application pool to classic.
and another thing you can test is your web.config file. it should have
if problem persist just clear IIS cache and restart your IIS.