On the subject of configuration files you can download the Configuration Management Application Block for .NET which comes complete with C#/VB.NET source code and have a look at how MS have designed/overcome some of the problems you are having to deal with.