title: HTTP Error 500.21 - Internal Server Error
body: <p>While trying to run my application hosted in IIS, its giving me following error.</p>
  
  <pre><code>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 \\?\C:\inetpub\wwwroot\Planner\web.config
  </code></pre>
  
  <p>After googling i found some suggestion, i tried to run the following comment in command prompt it got unlocked.</p>
  
  <p>%windir%\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/handlers -commitpath:apphost</p>
  
  <p>Now i am getting the following new error.</p>
  
  <pre><code>Module  IIS Web Core
  Notification    ExecuteRequestHandler
  Handler BlockViewHandler
  Error Code  0x8007000d
  Requested URL   http://localhost:80/Planner/Views
  Physical Path   C:\inetpub\wwwroot\Planner\Views
  Logon Method    Anonymous
  Logon User  Anonymous
  Most likely causes:
  
      Managed handler is used; however, ASP.NET is not installed or is not installed completely.
      There is a typographical error in the configuration for the handler module list.
  </code></pre>
  
  <p>Any help please?</p>
  
  <p>Thanks in advance.</p>