I installed IIS 7.5 (Windows 7) on two different PCs, one PC saves configuration to applicationHost.config and the other to web.config! Screenshot:
As you can see, the PC on the left does not contain the settings (they are stored in applicationHost.config) and the PC to the right does in fact store the settings in web.config.
I have not and hope not to modify the configuration files by hand and would like to do it using IIS Manager only.
Does anyone know why this happens or if there is some setting to force configuration to the web.config file? Thank you.
Edit: I am adding a screenshot of the applicationHost.config file (PC on the left) demonstrating how the configuration is stored in it instead of inside the web.config file.
Edit: Here are the steps that I am taking and I do make sure to work at the site level as suggested by Chris (having the site selected):
- Create folder named junk.tst using Windows Explorer.
- Copy all files and subfolders except for web.config from crop.tst (a working website) into junk.tst. Except for web.config, directory structures are identical.
- Launch IIS Manager, click on ‘Sites’ then ‘Add web site’. Provide basic settings for website ‘junk.tst’. Use existing ‘classic’ application pool.
- Clicking on site ‘junk.tst’, create bindings for ‘www.junk.tst’ and ‘junk.tst’.
- Double click on ‘junk.tst’ so that the IIS icons are visible. Please note that the site ‘junk.tst’ is selected on the left hand column tree view.
- Double click on the ‘Default Document’ icon and provide it (get rid of the other default docs).
- Go back to the IIS icons. ‘junk.tst’ is still selected on left.
- Double click on ‘Handler Mappings’ and ‘Add script map’ for my *.srf and another script map for my dll.
- Site ‘www.junk.tst’ is now working and handles requests made to *.srf and *.dll
Now I inspect web.config and like above, the circled config is not stored within web.config