January 4, 2014

Register asp.net on IIS

I have worked on setting up windows servers and then IIS and sometimes I have noticed that IIS does not recognise asp.net straight way. If that happens, the error message - Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list - is displayed on the browser when the asp.net site is run. Html files will still work at this stage.

To workaround this issue, asp.net will need to be registered again. To do so, open command prompt and change the directory to point to .net framework. In 32 bit system it will be at %windir%\Microsoft.NET\Framework\v4.0.21006\ and in 64 bit system it will be at %windir%\Microsoft.NET\Framework64\v4.0.30319\ .

  1. %windir%\Microsoft.NET\Framework64\v4.0.30319\


Run the command aspnet_regiis.exe -i .

  1. aspnet_regiis.exe -i


This will register asp.net . The following screen shot will appear on command prompt.

Capture

0 comments:

Reference: Shahed Kazi at AspNetify.com