-1

I am trying to deploye .net Web API in local IIS 10 my 64bit operating system machine. While browsing from IIS, it is showing below error:

HTTP Error 500.21 - Internal Server Error Handler "ExtensionlessUrlHandler-Integrated-4.0" has a bad module "ManagedPipelineHandler" in its module list

Although one ASP.NET Core web api is running fine in the same IIS.

BlackCat
  • 1,932
  • 3
  • 19
  • 47
  • Many old threads are out there like https://stackoverflow.com/questions/12069415/iis-7-httphandler-and-http-error-500-21 so what have you tried? Note that ASP.NET and ASP.NET Core are just like Java and JavaScript, so "one ASP.NET Core web api is running fine in the same IIS" doesn't mean your ASP.NET bits should run. – Lex Li Aug 22 '22 at 04:43

1 Answers1

2

Try to run cmd as Administrator end type and run the following command:

dism /online /enable-feature /featurename:IIS-ASPNET45 /all

Then restart IIS. The method is from this thread. Hope it helps.

YurongDai
  • 1,362
  • 1
  • 2
  • 7