After installing a web server roll on a new Windows Server 2008 server I noticed asp.net wasn’t installed. When running aspnet_regiis.exe -i I received the following error.
“The error indicates that IIS is not installed on the machine. Please install IIS before using this tool”
I quickly realised I was attempting to install asp.net from the x86 framework. Installing from the C:\windows\Microsoft.NET\Framework64\v2.0.50727\Framework64 resulted in a successful install.