ConfigurationProperty is inaccessible due to its protection level
I wanna read/write (and save) application's configuration file in program The app.config is like this: <configuration> <configSections> <section name="AdWordsApi" type="System.Configuration.DictionarySectionHandler" requirePermission="false"/> </configSections> <AdWordsApi> <add key="LogPath" value=".\Logs\"/> ... </AdWordsApi> </configuration> When I use ConfigurationManager.GetSection to read the app.config, it works: var adwords_section = (System.Collections.Hashtable) System.Configuration.ConfigurationManager.GetSection("AdWordsApi"); Console.WriteLine((string)adwords_section["LogPath"]);