HTTP Error 500.19 – Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module: IIS Web Core
Handle:r Not yet determined
Error Code : 0x80070021
Config Error: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Config File: \\?\C:\inetpub\wwwroot\xxx\web.config
Requested URL: http://localhost:80/xxx
Physical Path: C:\inetpub\wwwroot\xxx
Logon Method: Not yet determined
Logon User: Not yet determined
The solution I found was to reinstall asp.net feature of IIS7.0, in order to do that you’ve to go to
Control Panel -> uninstall a program -> Turn Windows Features On or Off -> Internet Information Services -> World Wide Web Services -> Application Development Features -> check/uncheck ASP.NET
Version: ASP NET 3.5, IIS7.5, C#, Windows 7 RC