This is the second time I have spent more than three hours trying to solve some unconnected problem and the solution turned out to be same. Always and always, install IIS before Visual Studio. And if you do happen to
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -i
This will solve the problem .