You may sometimes receive the below error if adding a new library to an existing project. It is also a common error when running older applications originally built for IIS 6 on newer versions of IIS.
HTTP Error 500.22 – Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
Luckily there are a couple of easy solutions to fixing this error: