1

I've installed an IIS server on windows 8 and plublished my first site, this is the error I get. Any help would be appreciated.

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

Requested URL http://localhost:80/ContractorScoping

Physical Path C:\inetpub\wwwroot\ContractorScoping

Logon Method Not yet determined

Logon User Not yet determined

Config Source:
   68:     <validation validateIntegratedModeConfiguration="false" />
   69:     <modules>
   70:       <remove name="ApplicationInsightsWebTracking" />

Line 69 is the one highlighted in red

Lee
  • 381
  • 1
  • 7
  • 16
  • Possible duplicate of [HTTP Error 500.19 and error code : 0x80070021](https://stackoverflow.com/questions/20048486/http-error-500-19-and-error-code-0x80070021) – Lex Li Oct 01 '18 at 12:21

2 Answers2

4

Schoolboy error, forgot to install asp.net on the server

Lee
  • 381
  • 1
  • 7
  • 16
  • Thanks for this answer - this saved me potential hours of red herring hunting around unlocking configuration elements (as directed by Microsoft) – JTech May 26 '21 at 05:06
  • Wasted about 20 mins figuring this out, before finding this post. Else would have probably spent 20 hours. Thank you – sid Aug 07 '22 at 15:22
3

This error comes due to missing IIS Packages. I solved the error with doing these steps:

  1. Click "Start button"
  2. in the search box, enter "Turn windows features on or off"
  3. in the features window, Click: "Internet Information Services"
  4. Click: "World Wide Web Services"
  5. Click: "Application Development Features"
  6. Check (enable) the features. I checked all but CGI.
Ege
  • 138
  • 1
  • 14