Only tested with IIS 7 on Server 08 R2
- Open ‘CMD’ and navigate to ‘C:WindowsMicrosoft.NETFramework<.NET version number>
- Type ‘aspnet_regiis.exe -ir’
- If this is a fresh version of IIS (no other sites running on it) or you’re not worried about the hosted sites breaking with a framework change you can use
-i
instead of-ir
. - At this point you will see it begin working on installing .NET’s framework in to IIS for you
- If this is a fresh version of IIS (no other sites running on it) or you’re not worried about the hosted sites breaking with a framework change you can use
- Open the IIS management console and click on ‘Application Pools’
- You should now see your ASP.NET version number registered.
Source: http://stackoverflow.com/questions/4890245/how-to-add-asp-net-4-0-as-application-pool-on-iis-7-windows-7