After configuring a new application in IIS and deploying our code to it, the server returned the following error:
HTTP Error 500.24 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
Most likely causes: •system.web/identity@impersonate is set to true.
The error message itself pointed us to the 'impersonate’ setting that was causing this error. However for this website we would like to use impersonation, so disabling it was not an option.
Instead what we did was ignoring this error by adding following configuration in our web.config:
<configuration> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> </system.webServer> </configuration>