cui
cui

Reputation: 23

Error Code 0x80070021 HTTP Error 500.19 - Internal Server Error

I trying to configure IIS but when I run the project this error appeared : Error Code 0x80070021 HTTP Error 500.19 - Internal Server Error

enter image description here

May I know the cause and solution for this?

This is example of TraceLogFiles

enter image description here

There was an error while performing this operation.

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”.

Upvotes: 0

Views: 1038

Answers (1)

samwu
samwu

Reputation: 5185

Cause:

This problem can occur if the specified portion of the IIS configuration file is locked at a higher configuration level.

Resolution:

  1. You can first modify the attribute of allowOverride according to the error message in frt.

    • Open %SystemRoot%\System32\inetsrv\config\applicationHost.config

    • Search for the statements below and change the allowOverride attribute from Deny to Allow

      <section name="handlers" allowOverride="Deny" />
      <section name="modules" allowOverride="Deny" />
      
    • Restart IIS

  2. If the above method does not work, you can unlock the specified section, or don't use it at the higher level. For more information about configuration locking, see How to Use Locking in IIS 7.0 Configuration.

Upvotes: 0

Related Questions