Error 0x80070021 when enabling an application in IIS 7.5 in windows 7

Error content:

The requested page is not available due to an incorrect data configuration for this page.This configuration section cannot be used on this path. This happens when the partition is locked at the parent level. The lock occurs either by default (overrideamodedefauld= "deny"), or is set directly using the location tag with overrideMode= "deny" or an inherited property allowOverride#="false".

Configuration file \c:\inetpub\wwwroot\web.config.

Requested address http://172.20.6.136/ default.htm

Configuration source {modules handlers remove name= " ASP}

This error occurs due to problems reading the configuration file for the web server or web application.

Handlers is highlighted in red. Help me fix the error.

 2
iis
Author: Дух сообщества, 2012-07-07

3 answers

If not installed on the machine ASP.NET, or at least something from the features for Application Development-the handlers section is blocked in the global config, as unnecessary. The correct solution in this case is not to edit the config manually, but to install the appropriate features:

On the server operating system:

  1. Launch wizard Add roles and features.
  2. Select ASP.NET in the section Web Server (IIS) -> Web Server -> Application Development.

On the client side operating system:

  1. Open wizard Turn Windows features on or off (it is available from the add / remove programs dialog)
  2. Select ASP.NET IN Internet Information Services -> World Wide Web Services -> Application Development Features
 3
Author: PashaPash, 2015-09-19 09:41:31

Here here is a description of your error.

 0
Author: evlanoff, 2012-07-08 13:21:33

You can try this option:

  1. In the config, try to remove this element, to which you added or interferes with the work. straight delete from the site's config file.

  2. Then open IIS,

  3. Go to the configuration editor(via your project)Site configuration

  4. And go to the section of the ktr you need, and click unlock with the rightunlock button

  5. Then click apply (save) and return the changes to web. config-e => save.
 0
Author: niz_sh, 2020-02-20 05:02:15