"The page you are requesting cannot be served because of the extension configuration." error message
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
Use aspnet_regiis.exe to register version of .NET framework you are using.
This is a common issue and happens when IIS is installed after VS or .NET framework.
Note - for Windows 8/10 users, see the other answer by JohnOpincar below. And also the comment/tip from Kevin Brydon.