How to fix: Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list
Asked 07 September, 2021
Viewed 490 times
  • 59
Votes

I am configuring an MVC 3 project to work on a local install of IIS and came across the following 500 error:


  

Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list.

It turns out that this is because ASP.Net was not completely installed with IIS even though I checked that box in the "Add Feature" dialog. To fix this, I simply ran the following command at the command prompt

%windir%Microsoft.NETFramework644.0.30319spnet_regiis.exe -i

If I had been on a 32 bit system, it would have looked like the following:

%windir%Microsoft.NETFramework4.0.21006spnet_regiis.exe -i

My question is, is there a way to install IIS on a windows 7 box to use .NET 4.0 (MVC 3) without taking this extra step?

19 Answer