Today I have faced with the “HTTP Error 500.19 – Internal Server Error” after publishing my ASP.NET project.
HTTP Error 500.19 – Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Module IIS Web Core
Handler Not yet determined
Error Code 0x80070021
The solution is to install (if it is not installed or reinstall) ASP.NET feature of IIS7.0:
Control Panel -> Program and Features -> Turn Windows Features On or Off -> Internet Information Services -> World Wide Web Services -> Application Development Features -> Check/Uncheck ASP.NET.