Remember that the application config files can not be edited at run time, which means that the app running can not modify it's own .config file. Have a look at the configuration application block, or do a search on xmlconfig files, there are several libraries out there that imitate the ini files...