Previous Next

Thread: Removing "Local" List Items Without Disabling Inheritence

Last post 11-29-2007 6:33 PM by rlucero. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 11-27-2007, 7:22 PM

    • Switche
    • Top 500 Contributor
    • Joined on 11-26-2007, 8:46 PM
    • Posts 9

    Removing "Local" List Items Without Disabling Inheritence

     I am currently running Server 2008 RC0. 

    Using the example of the Handler Mappings feature on the Web site level, I have a Handler Mapping for the ".php" file extension that is set as a "Local" Mapping, as well as a few other "Local" Handler Mappings on the site.

     If I now want to revert only the ".php" Handler Mapping to the inherited value, I cannot simply click "Remove" in the actions pane, or this will create a <remove> tag within the web.config/applicationHost.config for this Handler Mapping. This <remove> tag overrules the inheritence of this property, leaving the Handler Mappings with no ".php" Mapping at all, when I intended to revert this property to inherited.

    I also do not wish to use the "Revert to Inherited" action, because this action applies to the entire Hander Mappings feature, rather than individual list items, and I intended to retain the other "Local" Mappings, and avoid re-creating them all.

    The only solution I have at this point is to remove the "<remove>" tag from the web.config/applicationHost.config, which to me seems like a lot more effort than is necessary. Is there a "Revert to Inherited" feature in the works for individual list items, or are there any other options available?

    Thanks

  • 11-29-2007, 6:33 PM In reply to

    • rlucero
    • Top 25 Contributor
    • Joined on 09-29-2006, 3:35 PM
    • Seattle, WA
    • Posts 114

    Re: Removing "Local" List Items Without Disabling Inheritence

    No, unfortunately it is not possible to revert a single item back to its inherited value through the UI.  What you can do though is simply remove the “<add>” tag that contains php from the web.config and that is the same as reverting to inherited for a single item.

    When the item is removed the site/app will return to using the parent settings and the UI should correctly display the parent value.

    Ex:(Remove the "<add name..." portion)

    <configuration>
    <system.webServer>
                 <handlers>
                      <
    add name="Php Mapping Example" path="*.php" verb="*" modules="CgiModule" scriptProcessor="C:\SomeExe.exe" resourceType="File" />
                </handlers>
         </
    system.webServer>
    </
    configuration>

Page 1 of 1 (2 items)
Page view counter