We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

Error Code 0x80070021RSS

5 replies

Last post Mar 05, 2021 12:07 PM by daniel.vlasceanu

  • Error Code 0x80070021

    Nov 30, 2014 05:23 PM|muhammadm|LINK

    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 »

  • Re: Error Code 0x80070021

    Dec 01, 2014 06:38 AM|Pengzhen Song - MSFT|LINK

    Hi,

    According to the error messages, we can understand that what caused this error.

    muhammadm

    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" />

    We are trying to better understand customer views on social support experience. Click HERE to participate the survey.
    Thanks!
  • Re: Error Code 0x80070021

    Dec 01, 2014 06:35 PM|muhammadm|LINK

    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.

    <div class="content-container">

    Detailed Error Information:

    <div id="details-left">
    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
    </div> <div id="details-right">
    Requested URL    http://localhost:80/
    Physical Path    C:\Websites\Website
    Logon Method    Not yet determined
    Logon User    Not yet determined
    <div class="clear"></div> </div>
    </div> <div class="config_source content-container">

    Config Source:

      193:     <validation validateIntegratedModeConfiguration="false" />
      194:     <modules>
      195:       <remove name="ScriptModule" />
    
    </div> <div class="content-container"></div>
  • Re: Error Code 0x80070021

    Dec 09, 2014 05:00 AM|Pengzhen Song - MSFT|LINK

    Hi,

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

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

    We are trying to better understand customer views on social support experience. Click HERE to participate the survey.
    Thanks!
  • Re: Error Code 0x80070021

    Dec 09, 2014 09:10 AM|shyamsohane|LINK

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

  • Re: Error Code 0x80070021

    Mar 05, 2021 12:07 PM|daniel.vlasceanu|LINK

    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