Compdigitec Labs

« | Home | »

Solving Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in ASP.NET 4.0

By admin | July 12, 2010

If you have just installed Visual Studio 2010 or the .NET 4.0 Framework and trying to host ASP.Net 4.0 applications doesn’t work for you and results in the following error message:

Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler”

It means that you haven not yet run the aspnet_iisreg.exe executable needed to register the ASP.NET 4 framework with the IIS 7 webserver. In order to do so, open a command prompt and type in the following:

C:\windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

Substitute v4.0.30319 for what other past or future ASP.NET versions. To uninstall the ASP.NET 4 (e.g. for when you are done playing around with it and would like to do some work):

c:\windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -u

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Windows | 16 Comments »

16 Responses to “Solving Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in ASP.NET 4.0”

  1. Joe Says:
    August 19th, 2010 at 6:44 pm

    This didnt work for me.

    Windows 2008 R2 IIS 7

    Module AspNetInitClrHostFailureModule
    Notification BeginRequest
    Handler PageHandlerFactory-Integrated-4.0
    Error Code 0×80070002

  2. Lars Says:
    February 23rd, 2011 at 1:06 pm

    You’re the man!
    Sooo easy. It worked on a fresh install of Win7 - needed local access to NopCommerce. Changed ApplicationPool to 4.0 and running the Install script you provided. Thanks!

  3. Javier Bardi Says:
    February 23rd, 2011 at 4:09 pm

    This work for me.

  4. Frits Says:
    March 4th, 2011 at 8:14 am

    Works! Thanks you very much!

  5. parsa Says:
    April 19th, 2011 at 10:05 am

    Thanks a lot, you solved my problem easily :)

  6. LY Says:
    August 11th, 2011 at 5:02 am

    Don’t forget. If you’re running 64 bit windows os like Joe, you’ll also have to do the same for the 64 bit .net 4 framework. In this case in addition to

    C:\windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

    You’ll also have to run:

    C:\windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

    Joe, you’re probably running a 64 bit app. that’s why it didn’t work for you.

  7. Serena Says:
    November 23rd, 2011 at 7:45 am

    Great post! It solved my problem.

    Thank you so much!

  8. carldeltoro Says:
    December 19th, 2011 at 11:25 pm

    muchas gracias!!!

  9. Daniel Says:
    August 23rd, 2012 at 11:42 pm

    Perfect. Thanks! Fixed it straight away.

  10. cris Says:
    October 31st, 2012 at 8:21 am

    I love you

  11. Jesus Suarez Says:
    November 13th, 2012 at 4:02 pm

    Great!. Thanks Master! Problem Solved.

  12. Homepage Says:
    November 1st, 2013 at 12:12 am

    … [Trackback]…

    [...] Find More Informations here: [...]…

  13. Cesar Says:
    February 10th, 2015 at 9:14 pm


  14. Ganesh Says:
    May 21st, 2016 at 3:09 am

    thanks a lot……..

  15. Leo Gálvez Says:
    April 10th, 2017 at 9:23 pm

    Thanks a lot friend.

  16. Leo Gálvez Says:
    April 10th, 2017 at 9:23 pm

    Thanks a lot friend. Greetings from Chile.