Make sure to put the settings under the correct appSettings section. In my case it was the <appSettings> section under <configSections>
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career