Reading ALL values of a web.config file

Administrator

VB.NET Forum Admin
Joined
Jun 3, 2004
Messages
1,461
Programming Experience
10+
I'm aware of the ConfigurationSettings.AppSettings ease of reading values from a web.config file. However, I need information from other "normal" elements such as debug, trace, etc. that I need to see if it's enabled from my code, also the sessionState handler, if inProc or StateServer, etc. I suppose I could read in the entire XML doc and iterate it. Just seeing if there is an easier way to extract web.config settings/values from the "routine" or <system.web> portion.

Thanks!
 
Top Bottom