Reading Values from Machine.config in ASP.NET

N

N S S

I was able to figure it out

ConfigurationSettings.AppSettings("Environment")

this works for both web.config & machine.config
 
S

Steven Cheng[MSFT]

Hi N S S,

As for the web.config or machine.config , the
"ConfigurationSettings.AppSettings" property allow us to retrieve the
"AppSettings" Sections in them, and the web.config's setting will override
the machine.configs'.

But as for other buildin sections, they're read by internal sectionhandlers
and there is no buildin means for retrieving those elements.

Please feel free to let us know if you have any further detailed
requirement. Thanks.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top