app.config

  • Thread starter Thread starter Brandon Olson
  • Start date Start date
B

Brandon Olson

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
ConfigurationSettings.AppSettings 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
 
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
 
Back
Top