app.config

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brandon Olson

    app.config

    Hello,

    I am trying to have my distributed client machies share a configuration file
    located on a file share. I would like to use the
    ConfigurationSe ttings.AppSetti ngs wrapper for accessing the key-value pairs
    that I would use. Is it possible to do this? All of the documentation
    shows using an app.config file located in the same directory as the
    executable. Thanks in advance for any tips that you might be able to
    provide.

    Thanks,

    Brandon Olson


  • Dominique Vandensteen

    #2
    Re: app.config

    yes I think the app.config has to be in the same directory as your exe

    so what you can do is simply put a xml file with your configuration on a
    share drive and load that xml file yourself
    just create a Configuration class that does that
    you can make properties in that class to reflect your configuration

    eventualy use your app.config to set the share drive...


    dominique


    "Brandon Olson" <bolson@lindacl arkrealtors.com > wrote in message
    news:%23CGlRUb8 DHA.2404@TK2MSF TNGP12.phx.gbl. ..[color=blue]
    > Hello,
    >
    > I am trying to have my distributed client machies share a configuration[/color]
    file[color=blue]
    > located on a file share. I would like to use the
    > ConfigurationSe ttings.AppSetti ngs wrapper for accessing the key-value[/color]
    pairs[color=blue]
    > that I would use. Is it possible to do this? All of the documentation
    > shows using an app.config file located in the same directory as the
    > executable. Thanks in advance for any tips that you might be able to
    > provide.
    >
    > Thanks,
    >
    > Brandon Olson
    >
    >[/color]


    Comment

    Working...