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?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Mar 26, 2012, 3:01 AM
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.
Dipal ChoksiPosted Mar 26, 2012, 12:45 AM
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