Getting error “Asp.net 4.0 has not been registered on the web server.. blah-blah”?
Run this command as Administrator:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i

This will register ASP with IIS.