Click here to Skip to main content
15,946,342 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Within the software archtiecture of the company where I work we have lots of small apps, mainly server (about 12) and a couple of clients ones. Each one has its own config file. A lot of the settings within these are duplicated. We would like to create one app (probably a web service) which is used to store, maintain and distribute these settings so we have one copy of the values rather than lots of the same. Has anyone ever done this before or have any advice on the best way forward? We think it would make deployments across environments a lot easier.

1 solution

It's a simple matter to create and use a config file. Afterall, it's nothing more than a XML. I've written a couple of articles that might help you with your problem:

Overriding App.Config Settings for Multiple Objects[^]

Share User Settings Between Applications[^]

One of the classes used in those articles handles reading and validating data from a config file.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900