Marc said:
The app config files are intended strictly for application-wide
settings which are by default not going to change frequently. Since
they reside with the app, a normal user won't have write permissions
there anyway - so there's no need to make that file writeable.
Well, yes, they are used essentially provided as a replacement for command
line switches, which, of course, do not have a concept of being writable.
However, the registry was used for many configuration things, and worked
very well for per user configuration items that could change.
Since Microsoft are discouraging people from using the registry, how should
we handle per user configuration items that could change? This is why I say
that it was not thought out well.
As I said before - the app config files are intended as APPLICATION
CONFIGURATION FILES - not user settings files! They are - by design -
*NOT* user-specific - never intended to be.
<sigh> I have said such things myself *many* times -just do a google search
on my name and config. I just don't agree with the features that have been
provided. Note that the poster was asking for a comparison between config,
registry and INI, and that is what I did.
If you need to store user
settings, use some persistence mechanism into the isolated storage
area (e.g. streaming out a config object, or creating a XML-based user
preferences config file yourself).
Oh I see: you have no option but to roll your own.
You say 'configuration files weren't intended to be user-specific and while
I agree that this is clearly the case I assert yet again that they *should*
have thought about these issues and taken them into account in the original
design. This is especially concerning since the mechanism that they are
trying to persuade us from using, has those very features.
Richard