By default IIS and ASP.NET aren’t configured as part of a Windows setup (for obvious reasons) so developers are used to having to register IIS manually before being able to run and develop ASP.NET web sites on their desktops. Prior to Windows 8 it was a simple command like this:
aspnet_regiis -r
This no longer works and requires a different command. Depending on what you already have enabled this may work:
dism /online /enable-feature /featurename:IIS-ASPNET45
If you haven’t enabled anything related to IIS yet you can do that at the same time with:
dism /online /enable-feature /all /featurename:IIS-ASPNET45 (this is the one what helped me)
If this does not help the look further at http://www.jammer.biz/enable-asp-net-on-windows-10/