I might have missed if someone already answered this, but you can do
using System.Configuration;

NameValueCollection config = (NameValueCollection) =
ConfigurationSettings.GetConfig("System.Web/processModel");

Then get the values you need.

Adam..

-----Original Message-----
From: John Daintree [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 4:31 AM
To: [EMAIL PROTECTED]
Subject: [DOTNET] ASP.NET: programmatically reading machine.config settings


Hello All,

How should I programmatically retrieve a value that may have been set in
machine.config, or may have been set in my own application's web.config
file?

Specifically I want to be able to find the value for
responseDeadlockInterval at runtime, but without the hassle of having to use
XmlParsers to read all the possible configuration files.

Thanks in advance.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to