How to get rid of this error Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list

asp.netiis

Using IIS7.5, the website works fine in Visual Studio but when I try to deploy on IIS get the following error.

Module IIS Web Core
Notification ExecuteRequestHandler
Handler PageHandlerFactory-Integrated
Error Code 0x8007000d
Requested URL http://localhost:80/EFT/default.aspx
Physical Path
C:\inetpub\wwwroot\EFT_Converter\default.aspx
Logon Method
Anonymous
Logon User

Best Answer

The version of .Net you are using has not been registered with IIS correctly. If it is .Net version 4 on a 64-bit 2008 server use these two commands to fix it.

%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i