IIS 7.0 Directory Browsing for virtual directories throwing error if set to disable at default web root.  Is there a workaround?

Posted on 2014-08-05
Last Modified: 2014-08-26
Policy requires me to set my web directories to not allow directory browsing.  If I do this at the default web directory I cannot change it in II7.0 for my virtual directories.  It throws an error.  The error shows the path to the folder and says cannot write configuration files.  it works fine in I.E6.  Also I can change any folder on the server to enable it and that works.  The virtual directories work fine if it's disabled at the default web root.  I have to allow these directories to accept directory browsing like on the old server while leaving all the other off.  Any help would be appreciated.

I can do it if I go back and individually deny directory browsing on each folder but there is a lot of work involved in that and I still can't do the root directory itself since it does not show up in IIS interface like it does in the NT file structure.
Question by:kdschool
    LVL 25

    Expert Comment

    by:Zephyr ICT
    You should be able to do this through the applicationHost.config on 1 virtual directory or more.

    E.G: In the applicationHost.config file. (%WINDIR%\System32\inetsrv\config directory.)

    Above the </configuration> tag, something like:

     <location path="website-name/path-to-virtual-dir">
               <directoryBrowse enabled="true" />
    LVL 7

    Accepted Solution

    in GUI also you can Enable/Disable  Directory Browsing in site, default website or virtual directory level.

    Author Comment

    I've requested that this question be deleted for the following reason:

    No solution worked.

    Author Closing Comment

    This did work for me.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
    Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
    This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
    This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now