In Windows 8/10, you have to use
- Open Control Panel →
- Programs and Features →
- Turn Windows features on or off →
- Internet Information Services (IIS) →
- World Wide Web Services →
- Application Development Features →
- Check the appropriate items, such as enabling ASP.NET. (i.e install the appropriate version you want to configure your websites with)
Reference: Check the solution of this question for reference