Programmatically Modify Value In Web.Config

Discussion in 'ASP .Net' started by Joey, Aug 9, 2007.

  1. Joey

    Joey Guest

    Is this possible?

    I have an app where we are using forms authentication and are allow
    editing/changing of security role names. Since I have set permissions
    with <location> tags in web.config (i.e. allow roles="Administrator"),
    I will also need to modify the values there.

    TIA,
    JP
    Joey, Aug 9, 2007
    #1
    1. Advertising

  2. Joey

    Aidy Guest

    web config is just an xml file so you can read/alter/save it using the
    normal xml namespaces. However note that doing so will cause your
    application to be restarted.

    "Joey" <> wrote in message
    news:...
    > Is this possible?
    >
    > I have an app where we are using forms authentication and are allow
    > editing/changing of security role names. Since I have set permissions
    > with <location> tags in web.config (i.e. allow roles="Administrator"),
    > I will also need to modify the values there.
    >
    > TIA,
    > JP
    >
    >
    Aidy, Aug 9, 2007
    #2
    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. Stewart Armbrecht

    Modify Web.Config Programmatically?

    Stewart Armbrecht, Mar 2, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    6,062
    shailpatel83
    Feb 17, 2010
  2. =?Utf-8?B?VGF5bw==?=

    I can't modify web.config

    =?Utf-8?B?VGF5bw==?=, Jun 1, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,244
    VB Programmer
    Jun 1, 2004
  3. justin
    Replies:
    1
    Views:
    591
    =?Utf-8?B?Q3VydF9DIFtNVlBd?=
    Oct 12, 2005
  4. 3471Jack329

    Modify a web.config file

    3471Jack329, Sep 17, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    472
    Cowboy \(Gregory A. Beamer\)
    Sep 17, 2006
  5. CSharpner
    Replies:
    0
    Views:
    976
    CSharpner
    Apr 9, 2007
Loading...

Share This Page