Error 500.21 Handler "svc-Integrated" has a bad module "ManagedPipelineHandler" in its module list"

On my development adventures I encountered this problem related to WCF and IIS and took me almost forever before finding a solution which is the following:

  • Open the command line and go to C:\Windows\Microsoft.NET\Framework64\v4.0.30319
  • Type the following: aspnet_regiis.exe -i and hit enter.
  • Try your service again