Reading Values from Machine.config in ASP.NET

Discussion in 'ASP .Net Security' started by N S S, Nov 18, 2004.

  1. N S S

    N S S Guest

    How can i read values from Machine.config From ASP.NET
     
    N S S, Nov 18, 2004
    #1
    1. Advertising

  2. N S S

    N S S Guest

    I was able to figure it out

    ConfigurationSettings.AppSettings("Environment")

    this works for both web.config & machine.config

    "N S S" wrote:

    > How can i read values from Machine.config From ASP.NET
     
    N S S, Nov 18, 2004
    #2
    1. Advertising

  3. 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.)
     
    Steven Cheng[MSFT], Nov 19, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?RGFuaWVs?=

    Machine.config & web.config

    =?Utf-8?B?RGFuaWVs?=, Jan 18, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    13,339
    Hermit Dave
    Jan 18, 2004
  2. Ivan
    Replies:
    1
    Views:
    3,064
    Natty Gur
    May 21, 2004
  3. Carlos

    machine.config vs web.config

    Carlos, Apr 18, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    9,189
    Juan T. Llibre
    Apr 18, 2005
  4. CSharpner
    Replies:
    0
    Views:
    442
    CSharpner
    Apr 19, 2004
  5. Sunil.Dua

    Retrieving machine.config/web.config values ...

    Sunil.Dua, Feb 8, 2006, in forum: ASP .Net Security
    Replies:
    1
    Views:
    231
    Dominick Baier [DevelopMentor]
    Feb 8, 2006
Loading...

Share This Page