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 | 15 Comments »

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

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

    This didnt work for me.

    Windows 2008 R2 IIS 7

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

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

    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 16:09

    This work for me.
    Thanks!

  4. Frits Says:
    March 4th, 2011 at 08:14

    Works! Thanks you very much!

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

    Thanks a lot, you solved my problem easily 🙂

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

    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 asp.net app. that’s why it didn’t work for you.

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

    Great post! It solved my problem.

    Thank you so much!

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

    muchas gracias!!!

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

    Perfect. Thanks! Fixed it straight away.

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

    I love you

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

    Great!. Thanks Master! Problem Solved.

  12. Cesar Says:
    February 10th, 2015 at 21:14

    Thanks!!!

  13. Ganesh Says:
    May 21st, 2016 at 03:09

    thanks a lot……..

  14. Leo Gálvez Says:
    April 10th, 2017 at 21:23

    Thanks a lot friend.

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

    Thanks a lot friend. Greetings from Chile.

Comments