While working with IIS today I started getting the following error:
HTTP Error 500.21 - Internal Server Error
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list
The reason I found was that my ASP.NET framework got corrupted. The solution was to reinstall it. I did via command prompt with the following command:
Output of console:After runninng the above command my problem was solved.