applicationhost.config file path in IIS 7, 7.5, 8, 8.5 and IIS 10?

IisIis 7Iis ExpressIis 8Iis 10

Iis Problem Overview


Anyone please explain me the applicationhost.config file location in the different mentioned IIS versions. Please mention the exact locations in each iis version. Apt answers will be appreciated.

Iis Solutions


Solution 1 - Iis

For the "big" IIS versions since IIS 7, the location is always the same:

 %windir%\System32\inetsrv\config\applicationHost.config

For IIS Express there is one per user, the default location is:

%USERPROFILE%\Documents\IISExpress\config\applicationhost.config

again it's the same for all versions.

You can run multiple instances of IIS Express per user, you would need to specify the location of the applicationhost.config as the command line parameter /config for iisexpress.exe

Solution 2 - Iis

You can delete one or more site in IIS server 7 or above using the application host config file which resides under the "windows/system32/inetsrv/config" folder.

If you want more detailed information then you can read this blog post Delete or manage one or more IIS websites through application host configuration file

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKathir SubramaniamView Question on Stackoverflow
Solution 1 - IisPeter HahndorfView Answer on Stackoverflow
Solution 2 - IisnegaboysView Answer on Stackoverflow