Saturday, April 13, 2019

Handler "ExtensionlessUrlHandler-Integrated-4.0" has a bad module "ManagedPipelineHandler" in its module list

While hosting asp.net Web APIs on IIS (Internet Information Services) you may face an exception saying Handler "ExtensionlessUrlHandler-Integrated-4.0" has a bad module "ManagedPipelineHandler" in its module list. Major cause of this exception is that you have not enabled asp.net 4.6 or 4.7 in IIS.

To solve this issue take the following steps:

For Windows 10

  1. Open Control Panel > Programs & features
  2. In left side pane click Turn Windows Features on or off (A Windows features window will appear)
  3. Expand Internet Information Service > World Wide Web Services > Application Development Features. Then check ASP.NET 4.7 (or 4.6 whichever available). This will automatically check .NET Extensibility 4.7 (or 4.6 whichever applicable)

  4. Click OK (This will install and configure asp.net features for IIS)
  5. Refresh your page
  6. You should not see exception any more.


No comments:

Post a Comment