HTTP Error 500.19" error with HResult code 0x80070021

Overview

After setting up IIS, when you try to bring up a web page, you encounter an Internal Server Error (HTTP Error 500.19" error with HResult code 0x80070021). This is typically caused by not having all the required Server Roles installed on the server.

Resolution

To resolve the issue, add Server Roles as depicted in the following image:

click to enlarge