IIS 7 and Above
How to detect whether IIS logging for particular site has been disabl...
Last post Dec 01, 2014 07:53 AM by lextm
Dec 01, 2014 06:31 AM|mahe001|LINK
I am i am reading the applociationHost.config of IIS application in c# application , when i disable to logging for particulate website it will add the another node in config like below
<httpLogging dontLog="true" />
but i can not able to read this properties in c# . My C# code sample is below
using (ServerManager serverManager = new ServerManager())
Configuration config = serverManager.GetApplicationHostConfiguration();
but config varaible only has the below three section group . from this section group i am not able to read the <location> node element
How can i detect the whether logging has been disabled or not for particular website from config file in c# application ?
Dec 01, 2014 07:53 AM|lextm|LINK
There is a overloading function that takes the location tag.