Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How exactly is locking performed with IIS and a web.config?

How exactly is locking performed with IIS and a web.config?

Scheduled Pinned Locked Moved C#
helpcsharpasp-netvisual-studiocom
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xarzu
    wrote on last edited by
    #1

    I have a Web Site I am trying to debug and explore. It is used already. It is already in a workable state on the computers of my peers in my development group. I just want to step through the code in debug mode. To do this, according to a peer I work with, I need to start the web site locally and then attack the project I have loaded in Visual Studio to the running project. This brings me to the error I am stumped on. when I open IIS and click on the option to "Browse *.80 (http)" for the website that is listed and has been validated, it launches the website in a browser but it has an error: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. 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:\Users\....\web.config Of course I have modified the path to the web.config to keep this anonymous. The "Config Source:" on the page has a red highlighted line that has the XML node, but this does not seem to be useful information. The "More Information" area at the bottom of the page says: More Information: This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error. View more information » Since the HResult code is 0x80070021, the corresponding Error message listed on this hyperlink page, https://support.microsoft.com/en-us/help/942055/http-error-500-19-error-when-you-open-an-iis-7-0-webpage is: Server Error in Application "application name" HTTP Error 500.19 – Internal Server Error HRESULT: 0x80070021 Description of HRESULT The requested page cannot be accessed because the related configuration data for the page is invalid. The Cause is: This problem can occur when the specified portion of the IIS configuration file is locked at a higher configuration level. The Resolution is: To resolve this problem, unlock the specified section, or do not use it at that level. For more information on configuration locking,

    Richard DeemingR 1 Reply Last reply
    0
    • X Xarzu

      I have a Web Site I am trying to debug and explore. It is used already. It is already in a workable state on the computers of my peers in my development group. I just want to step through the code in debug mode. To do this, according to a peer I work with, I need to start the web site locally and then attack the project I have loaded in Visual Studio to the running project. This brings me to the error I am stumped on. when I open IIS and click on the option to "Browse *.80 (http)" for the website that is listed and has been validated, it launches the website in a browser but it has an error: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. 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:\Users\....\web.config Of course I have modified the path to the web.config to keep this anonymous. The "Config Source:" on the page has a red highlighted line that has the XML node, but this does not seem to be useful information. The "More Information" area at the bottom of the page says: More Information: This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error. View more information » Since the HResult code is 0x80070021, the corresponding Error message listed on this hyperlink page, https://support.microsoft.com/en-us/help/942055/http-error-500-19-error-when-you-open-an-iis-7-0-webpage is: Server Error in Application "application name" HTTP Error 500.19 – Internal Server Error HRESULT: 0x80070021 Description of HRESULT The requested page cannot be accessed because the related configuration data for the page is invalid. The Cause is: This problem can occur when the specified portion of the IIS configuration file is locked at a higher configuration level. The Resolution is: To resolve this problem, unlock the specified section, or do not use it at that level. For more information on configuration locking,

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      You can "unlock" the relevant sections by using appcmd on the command-line, or by using the "Feature Delegation" option within IIS Manager: An Overview of Feature Delegation in IIS 7.0 | Microsoft Docs[^]


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups