Solution



So I finally found some decent documentation on this:
https://secure.codeproject.com/dotnet/mysteriesofconfiguration.asp

To be honest, what I was hoping would be a couple of lines of code appears to require writing literally pages and pages of code to define classes and then some fiddling around writing changes (in XML) into the app config file.

It's amazing that a task which used to consist of :
create instance of ini file class
read/write datetime/string/int/bool to particular section
release instance of ini file class

(literally three lines of code - 6 with a try finally block) has now become a process that an experienced programmer could very well waste 5-10 minutes on... and a process that he/she will undoubtedly have to replicate many times during the development of any project, potentially wasting hours of his/her time.

So the new ConfigurationManager class seems to be, in brief, a major disappointment in terms of it's versatility and usability. It's quite nice if all you want to do is store a name/value pair or a ConnectionString but as soon as you want to organize your configuration information (even just into sections like with ini files) it chokes productivity completely.

Best Regards,

James Crosswell
Microforge.net LLC
http://www.microforge.net
.



Relevant Pages

  • Re: service configuration
    ... Com is not the way to go, The config tool could be on another system ... and the system wide even or ini file is too simple. ... > Upscene Productions ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Deleting A Line From A File
    ... ini file class ... Newbie to VB.Net and I have a question ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Why shouldnt you put config options in py files
    ... in config.py and just import it to get FOO, ... same using an ini file and ConfigParser, and since Python files are just ... Depends on who is writing these config files and how they are used. ...
    (comp.lang.python)
  • Re: Loaded Configuration File (none) ? Why ?
    ... file from within your own php code? ... You can override most settings from the ini file within your Apache ... config - see http://us2.php.net/configuration.changes but I think you ...
    (comp.lang.php)