HTTP Error 500.19 and error code : 0x80070021 while configuring IIS server

3

I am trying to configure IIS server but I get 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.

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:\inetpub\wwwroot\LinedataHandyPartner\web.config

Config Source:

   52:     </handlers>
   53:     <modules runAllManagedModulesForAllRequests="true">
   54:       <remove name="UrlRoutingModule-4.0" />
asp.net
iis
asked on Stack Overflow Feb 10, 2016 by Sami Kobbi

1 Answer

5

To unlock IIS configuration for module settings, enter the following commands in an elevated PowerShell context.

Import-Module WebAdministration

Set-WebConfiguration `
  -Filter "/System.webServer/modules" `
  -Metadata overrideMode `
  -Value Allow `
  -PSPath "IIS:\"
answered on Stack Overflow Mar 1, 2016 by Isaac Moesker • edited Mar 1, 2016 by Isaac Moesker

User contributions licensed under CC BY-SA 3.0