Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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\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
add comment

Your Answer

 
discard

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.