Fixing HTTP Error 500.21 – Internal Server Error Handler “WebServiceHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list on IIS.


I was recently developing some .net web applications at work and finally took the plunge of setting up a server to host them after I was happy that we had reached the point where they were usable applications.  So after setting up Server 2008 R2, I went ahead and enabled IIS with asp.net configuration enabled along with a host of other modules enabled to support what we were after. Gave the server a reboot and everything was up and ready to go.

Moved over to my development machine and instructed Visual Studio to publish an application to this newly setup web server, everything up until this point had worked perfectly, the web app published without any errors. So I opened up Internet explorer and low and behold error, page cannot be displayed. So I’m like maybe it’s a permissions thing, remoted into the web server and viewed it as a localhost and got Error 500.21 – Internal Server Error  Handler “WebServiceHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler”.  I had gone ahead and configured an application pool for the web apps we were going to use, and everything seemed OK.  I then remembered something, in the good old IIS 6 days you had to run a .net registration program to notify IIS you had it installed and register the handlers for .net, but thinking to myself this is now 2008 R2, come on, it couldn’t be that.

I opened up an elevated command prompt window and navigated to C:\Windows\Microsoft.NET\Framework\v4.0.30319 and ran aspnet_regiis.exe -i causing asp.net to register itself with IIS and enable the handlers required to run .net pages.

After running this command I rebooted IIS and bang the web application started working.  An easy fix but a pity that it couldn’t have run automatically when I insist on installing asp.net under the IIS configuration.

 


26 responses to “Fixing HTTP Error 500.21 – Internal Server Error Handler “WebServiceHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list on IIS.”

  1. mohamad Avatar
    mohamad

    Hello
    thank you so much
    excellent
    you solved my problem.

  2. Umesh Avatar

    HTTP Error 500.21 – Internal Server Error
    Handler “PHP53_via_FastCGI” has a bad module “FastCgiModule” in its module list

    How to rectify this problem……………

    1. John Avatar
      John

      Hi umesh, simply make sure you have CGI enabled, do the following to check.

      Open up your Control Panel and go to the Programs section and choose “Turn Windows features on or off”.
      Under Internet Information Services, select World Wide Web Services, then Application Development Features and check the box for CGI.
      Click OK and install.
      Your php page should load ok now.

  3. arun Avatar
    arun

    A quick solution to find… good work

  4. Jeppe Avatar
    Jeppe

    Thanks mate.. Solved my problems 🙂 Easy fix you wouldnt think of running IIS 7.5

  5. Emad Avatar
    Emad

    Thanks a lot. I was really stock.

  6. Clare Avatar
    Clare

    Brilliant! Thanks!

  7. rajesh Avatar
    rajesh

    super………….boss

  8. whacker Avatar
    whacker

    worked like charm.

  9. mohsin Avatar
    mohsin

    HTTP Error 500.21 – Internal Server Error
    Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list

  10. itbhn Avatar
    itbhn

    Thanks very much

  11. jyoti Avatar
    jyoti

    Registered asp using cmd , but still the error persists, could not figure out how to enable handlers or reboot iis ?

  12. hiral Avatar
    hiral

    thanxx

  13. Joshua_ng Avatar
    Joshua_ng

    OMG!!! Thank you very much. You are the best! Problem was solved.

  14. Atul Avatar
    Atul

    Great you saved my life

  15. Kiran Katkar Avatar
    Kiran Katkar

    Thanks a lot!!
    It worked.

  16. enkhbat Avatar
    enkhbat

    Thank you

  17. Ajay Avatar
    Ajay

    Thanks.!!!

  18. Calvin Kelley Avatar
    Calvin Kelley

    got fixed…thank you very much it helped alot….great work…

  19. ashraf Avatar
    ashraf

    thanx……..

  20. ilyas Avatar
    ilyas

    thank a lot

  21. adan Avatar

    Hello, thank you so much
    excellent you solved my problem

  22. aastha Avatar
    aastha

    thank u so much!!
    it helped a lot

  23. osama Avatar
    osama

    thank u
    u solved my problem

  24. GSoft Avatar
    GSoft

    Thank you, It was helpful.

  25. Leonardo Avatar
    Leonardo

    Thanks!!! from BR

Leave a Reply

More Posts

How to Reset a Domain Controller’s Domain Admin password for a Virtual Machine running up in Azure

The Reset password utility for Virtual Machines has come in handy on the odd occasion when we never recorded or misplaced the password for a VM running in Azure. The downside is this tool does not support running against Domain Controllers (to reset the in-built Administrator account).  So what happens when you have a domain […]

Getting a machine product name and serial number using WMIC for use with MDT or SCCM

Quick post today, I organise my driver folders into manufacturer and model and then use a task sequence to pick machine specific drivers. Getting the exact model name helps and one day to do that is via a WMI query. It’s a command I try to use quite a bit (and tend to forget the […]

How to Multicast a Ghost image (GhostCast) using the Altiris Deployment Console 6.9

We recently needed to image a large number of machines in a short amount of time.  Anyone who has dealt with Altiris and use Ghost as their method of imaging know that Altiris wont by default Multicast the image and will instead push it out individually to each client that connects. So here is a […]