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

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.
kdschoolAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Zephyr ICTCloud ArchitectCommented:
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">
      <system.webServer>
           <directoryBrowse enabled="true" />
      </system.webServer>
 </location>
0
Pushpakumara MahagamageVPCommented:
in GUI also you can Enable/Disable  Directory Browsing in site, default website or virtual directory level.
http://technet.microsoft.com/en-us/library/cc731109%28v=ws.10%29.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kdschoolAuthor Commented:
I've requested that this question be deleted for the following reason:

No solution worked.
0
kdschoolAuthor Commented:
This did work for me.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.