Ok yes I was being thick - DOH!
On Nov 26, 5:19 pm, Markarina <[email protected]> wrote: > I've done a bit more digging and it seems that app.config is mainly > intended for settings that are changed rarely, and the nature of the > settings I am using is that they will probably change each time the > application is run. Also if I'm being honest having found some code > snips that show how to use app.config I can't get them to compile. > > System.Configuration.Configuration config = > ConfigurationManager.OpenExeConfiguration > (ConfigurationUserLevel.None); > > config.AppSettings.Settings["oldPlace"].Value = "3"; > config.Save(ConfigurationSaveMode.Modified); > ConfigurationManager.RefreshSection("appSettings"); > > gives the error > > The type or namespace name 'Configuration ' does not exist in the > class or namespace 'System.Configuration' (are you missing an assembly > reference?) > > I also get " the name 'ConfigurationManager' does not exist in the > current context" > > I'm probably being thick, but what am I missing? > > The other information suggests using "xmlserializer"
