Hi friends,
I want to know that can we programmatically access IIS configure settings? If yes then how it is possible to do that please explain in brief?
Accessing IIS configuring settings
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Dipal ChoksiRank #199 · 12K reputationPosted Mar 25, 2012, 8:45 PM EDT
Here is a link to some documentation on the providers
http://msdn.microsoft.com/en-us/library/ms524926(v=VS.90).aspx
Here, within the documentation, you can find detailed info on using the IIS ADS provider to get the IIS properties.
http://msdn.microsoft.com/en-us/library/ms525389(v=VS.90).aspx
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 25, 2012, 11:01 PM EDT
ApplicationHost.config is the root file of the configuration system when your are using IIS 7 and above. It includes definitions of all sites, applications, virtual directories and application pools, as well as global defaults for the web server settings.
It is also special in that it is the only IIS configuration file available when the web server is installed.
it is located at %Windowdir%\System32\inetsrv\config\schema\IIS_schema.xml
please refer
http://learn.iis.net/page.aspx/128/iis-7-and-iis-8-configuration-reference/#HowTo
hope this help.