IIS 7 + ASP.NET 4

asp.netiis

I have an ASP.NET application that I am trying to convert to an ASP.NET 4 application. The application is fairly simple. I have created a new web application in IIS 7.5 pointing to the directory that the ASP.NET application exists in.

When I attempt to execute the application, but entering http://localhost:[port] into my browser, I receive the following error:

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

Most likely causes:

  • Managed handler is used; however, ASP.NET is not installed or is not installed completely.
  • There is a typographical error in the configuration for the handler module list.

Best Answer

I have the same problem when try publishing SL App using VS2010 although there is no prob before with .NET 3.5SP1 and VS2008.

So try run this (%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i) as described here forums.iis.net/t/1149449.aspx and here www.gotknowhow.com/articles/fix-bad-module-managedpipelinehandler-in-iis7 and It works now. So the problem is ASp>NET 4.0 has not properly installed, huuu... :)