How to install and Register ASP.Net with IIS in windows 7

How to install and Register ASP.Net with IIS in windows 7
Today I am going to explain how to register ASP.Net with IIS when installing ASP.Net in IIS so that an ASP.Net page can request to recognize or respond from IIS. If it is not registered with Internet Information Services then you will get the error as in the following.


ASP.Net 2.0
“ASP.NET 2.0 has not been registered on the Web Server. You need to manually configure your Web server for ASP.NET 2.0 for your site to run correctly.”

(OR)

ASP.Net 4.0
“ASP.NET 4.0 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.0 for your site to run correctly”

Follow these 4 Steps to resolve this issue:


Step -1

To find the location for the aspnet_regiis.exe file, go to the location C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319   as in the following:


 Kindly check, based on your system's bits (32 0r 64) for the .NET Framework location.

Step -2
Go to inside the folder using cd command like this



Step -3

Now register ASP.Net with IIS as in the following command (aspnet_regiis.exe):
Full command Syntax:
“C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe–I”




Step-4
Press enter and wait till installation completion




 Now your IIS is registered successfully.