Sunday 22 March 2015

HTTP Error 500.19 IIS 8-7 solution

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

Notification
   BeginRequest

Handler
   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
   \\?\....\web.config


Causes:
user account of app pool doesn't have rights to the web site directory, so it can't read config from there. Check the app pool and see what user it is configured to run as. Check the directory and see if that user has appropriate rights to it. While you're at it, check the event log and see if IIS logged any more detailed diagnostic information there.


Solution

Install Application Development framework and filters

Steps:

  1. Open control panel
  2. Click on” program” link (not uninstall programs)
  3. Click” turn windows features on/off” link
  4. locate” Internet Information services IIS” in the pop up window and expand its node
  5. Expand the” World Wide Web Service” node
  6. Expand “Application Development Features” node
  7. check the check box of”ASP.NET”
  8. Then click ok button