HTTP Error 500.19 - Internal Server Error

Md. Al Amin 1 Reputation point
2021-11-21T08:42:22.497+00:00

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:\Program Files\Hosting Controller\Portal\web.config

Requested URL https://localhost:8797/
Physical Path C:\Program Files\Hosting Controller\Portal
Logon Method Not yet determined
Logon User Not yet determined

Config Source:
38: <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="false" />
39: <modules runAllManagedModulesForAllRequests="true">
40: <remove name="WebDAVModule" />

Internet Information Services
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce Zhang-MSFT 3,656 Reputation points
    2021-11-22T05:13:50.87+00:00

    Hi @Md. Al Amin ,

    Please refer to the Scenario 7 in this document.

    There are usually a few more lines in that error response that points to the exact line in the config file (and hence the locked section) that has the problem. You will either have to unlock that section or not use it in your application’s web.config file.

    Or manually change value from "Deny" to "Allow" for below settings in %windir%\system32\inetsrv\config\ applicationHost.config

    Another way is checking your windows features.

    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.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Bruce Zhang

    No comments