Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a IIS 7 running where one of the sites is just a bunch of files exposed through Directory Browsing. I can enable it without any problems, but within a few hours the setting resets itself. Any idea what this could be caused by?

share|improve this question

The configuration being rolled back somehow, or not rolled back but simply changed in that regard, for some reason. Directory browsing doesn't just turn itself on or off; someone or something has to be taking action.

Edits to either system32\inetsrv\config\applicationhost.config or a web.config file in the content directory (or at a level above it) are the most likely source of a configuration change.

Any changes to apphost.config will be backed up to \Inetpub\History , so can be reviewed in reverse there.

File auditing might be your best bet for working out what's doing it.

Incidentally, if IIS 6 Metabase Compatibility is installed, an older script or re-installer might be doing it.

share|improve this answer
Great answer, I'll be sure to check out the apphost.config History. I'm a developer and this is the customers machine, so I have limited rights. – Bartek Tatkowski Jan 3 '12 at 10:30

A possible issue is that Directory Browsing can be set in ApplicationHost.Config and also the local web.config. If your development Web.Config doesn't have the Directory browsing setting and you publish your web site, you'll overwrite the setting.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.