locked
Error Code_ 0x80070021 RRS feed

  • Question

  • User-207835845 posted

    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

       \\?\C:\Websites\Website\web.config

    Requested URL

       http://localhost:80/

    Physical Path

       C:\Websites\Website

    Logon Method

       Not   yet determined

    Logon User

       Not   yet determined

    Config Source:

      202:     </modules>

      203:     <handlers>

      204:       <remove name="WebServiceHandlerFactory-Integrated" />

    More Information:

    This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.

    View more information »

    Sunday, November 30, 2014 5:23 PM

All replies

  • User1183424175 posted

    Hi,

    According to the error messages, we can understand that what caused this 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".

    You can try to unlock it in applicationhost.config like this

    <configSections>
      <sectionGroup name="system.webServer">
        <section name="handlers" overrideModeDefault="Allow" /> 

    Or remove the section which caused the error

    <remove name="WebServiceHandlerFactory-Integrated" />

    Monday, December 1, 2014 6:38 AM
  • User-207835845 posted

    thank you for reply

    Now I got stuck on this error

    HTTP Error 500.19 - Internal Server Error

    The requested page cannot be accessed because the related configuration data for the page is invalid.

    <fieldset>

    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    \\?\C:\Websites\Website\web.config
    Requested URL    http://localhost:80/
    Physical Path    C:\Websites\Website
    Logon Method    Not yet determined
    Logon User    Not yet determined
    </fieldset>
    <fieldset>

    Config Source:

      193:     <validation validateIntegratedModeConfiguration="false" />
      194:     <modules>
      195:       <remove name="ScriptModule" />
    
    </fieldset>
    Monday, December 1, 2014 6:35 PM
  • User1183424175 posted

    Hi,

    You can change the section modules to unlock it according to the error messages, like:

    <section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Allow" />

    Tuesday, December 9, 2014 5:00 AM
  • User278830555 posted

    Or you can unlock in IIS by selecting server name and in right side configuration editor unlock the section.

    Tuesday, December 9, 2014 9:10 AM
  • User2066522692 posted

    For those still having this same issue, in my case I was missing the .NET 4.x integration in IIS.

    Windows features -> Internet Information Services -> World Wide Web Services -> Application Development Features -> ASP.NET 4.X

    Friday, March 5, 2021 12:07 PM