Monday, March 12, 2012

Error Code 0x80070021

THE ERROR:

HTTP Error 500.19 - Internal Server Error with Error Code: 0x80070021
The requested page cannot be accessed because the related configuration data for the page is invalid.

ERROR DETAILS:

Module: RequestFilteringModule
Notification: BeginRequest
Handler: StaticFile
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:\RnDInternet\web.config
152:
153:
154:

ERROR SCREEN SHOT:

image

KB Article for this error:


STEPS TO RESOLVE - HOW TO CORRECT:

Most of the time following steps correct this issue:
  • Go to C:\Windows\System32\inetsrv\config folder and open applicationHost.config file. Search for
    Change


    TO
  • Alternatively you can use appcmd.exe command to unlock this section.

    Use following command to unlock this section globally:

    %windir%\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/security/requestFiltering

    Use following command to unlock this section for a particular site/app:

    %windir%\system32\inetsrv\appcmd.exe unlock config "SiteName/app/url" -section:system.webServer/security/requestFiltering
But in my case I already had the required changes in applicationHost.config file. Also I notice the error code is different then normally error code. To resolve the issue I had to uninstall the IIS feature and add it back. Just by doing this everything works.
To uninstall & Install the IIS feature, go to Control Panel –> Programs and Features and then click at “Turn windows feature on or off”.
image
It will open a new dialog box in which select & expand the “Internet Information Services” –> “World Wide Web services” –> “Application Development Features” and uncheck everything. Click OK to start uninstall process.
 image
After the uninstall is done, follow the same process to open Windows Feature dialog box and select the features you want. I normally install following features.
image
I hoe this article will help other facing similar issue. Please feel free to share more tips and suggestions.

 http://blog.laksha.net/2009/08/http-error-50019-internal-server-error.html

1 comment:

  1. I am getting Error Code 0x80070021 when trying to copy a user's .pst file. I am able to open it under my profile from a shared drive, but other users who actually have rights on the file are unable to open. I am a domain admin so I can open but cannot copy the file. This is not an IIS error....Outlook. Thanks!

    ReplyDelete