If you do not have .NET 4.0 installed, you will need to do so before continuing.
aspnet_regiis.exe allows you to register ASP.NET in IIS and update the script maps for all application pools or specific paths.
Run Command Prompt as Administrator.
32-bit machines:
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i
64-bit machines:
''%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -i ''
NOTE: If you receive the message “aspnet_regiis is not a recognized operable program or batch file” when you run this command you may be missing key files in your .NET 4.0 install. To fix this: visit the following website, http://www.microsoft.com/en-us/download/details.aspx?id=17851, and install 4.0 again.
Where path is the root directory of the website in IIS.
32-bit machines:
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -iru %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -s path
64-bit machines:
''%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -iru '' ''%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -s path ''