How to register .Net Framework 4 on IIS?

Some application require ASP.net framework 4.0 in order to run the application. To run ASP.Net pages on IIS, ASP.Net has to be registered with IIS so that it can handle requests for ASP.Net pages. If IIS is already installed when a version of .Net Framework is installed then IIS is automatically configured to handle ASP.Net requests by the .Net Framework installation package. If IIS is not installed when you install a .Net Framework version then the registration process cannot happen and needs to be done later once IIS has been installed.

Normally, the error that will come out if the APS.net framework is not register is "IIS 7.5 error: Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list". If you facing this kind of error, you may follow below simple easy steps to register the ASP.net framework on IIS.

How to Register .Net Framework

Please open command prompt(cmd) and run the following command:-
1. cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
2. iisreset /stop
3. aspnet_regiis -i
4. . iisreset /start
5. Enter below command
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

Comments