Thanks Micheal for the help.
My OS is 64bit, so I ran aspnet_regiis.exe in Framework64 which solved the problem.
c:\Windows\Microsoft.NET\Framework64\v4.0.30319>
This was after running aspnet_regiis in folder ...\Framework\v4.0.30319 which did not resolve the problem.