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 two websites, one of which is a slight fork of the originals source code. A basic feature (the use of sessions) appears to be working differently on the forked site to the original site.

I have diff'ed the source and can see no differences in the key areas, and so I am wondering if there is some way I can diff the IIS site configurations?

Is it possible to export ALL the site settings to a text file which could be diffed or is there some other way of highlighting any differences?

share|improve this question
up vote 3 down vote accepted

In IIS 6 you could have done this by looking at the metabase file, however in IIS 7 the settings for IIS are distributed over a number of files, so you would need to look at all of these :

The primary one is the applicaitonHost.config file, located at %windir%\system32\inetsrv\config\applicationHost.config, this is the global web server configuration file, where all configuration sections are declared.

You would also want to check the machine and web config files, at Framework\<version>\CONFIG\machine.config and Framework\<version>\CONFIG\web.config

Finally, there are the web.config files for each site.

If you compare each of these files it should give you a pretty comprehensive view of the settings for each site and their differences.

share|improve this answer
Thanks Sam. Does the web.config reflect all the settings in IIS. If I change something in IIS, does the web.config get updated with those chnages? – Greg B Oct 2 '09 at 9:20
No, the settings for IIS are split over 3 files, the applicaitonHost.config, and the global web and machine .config files, there are then site specific settings that can be set, or overridden in the per site web.config files – Sam Oct 2 '09 at 9:33

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.