title: unable to retrieve appsettings value
body: <p><strong>What am I doing wrong with retrieving the appsettings?</strong></p>
  
  <p>in my <code>app.config</code> i have:</p>
  
  <pre><code>...
  &lt;startup&gt;&lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/&gt;
  &lt;/startup&gt;
    &lt;appSettings&gt;
      &lt;add key="culture" value="cs-CZ"/&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>i am attempting to retrieve the <code>culture</code> value:</p>
  
  <pre><code>Dim culture = ConfigurationManager.AppSettings("culture").ToString()
  </code></pre>
  
  <p>But <code>culture</code> is always yielding <code>Nothing</code></p>
  
  <p><strong>What am I doing wrong with retrieving the appsettings?</strong></p>
  
  <p>Here's my entire app.config file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;globalization uiculture="cs-CZ" culture="cs-CZ"&gt;
    &lt;/globalization&gt;
    &lt;configSections&gt;
          &lt;sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"&gt;
              &lt;section name="WindowsApplication1.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/&gt;
          &lt;/sectionGroup&gt;
      &lt;/configSections&gt;
  
      &lt;system.diagnostics&gt;
          &lt;sources&gt;
              &lt;!-- This section defines the logging configuration for My.Application.Log --&gt;
              &lt;source name="DefaultSource" switchName="DefaultSwitch"&gt;
                  &lt;listeners&gt;
                      &lt;add name="FileLog"/&gt;
                      &lt;!-- Uncomment the below section to write to the Application Event Log --&gt;
                      &lt;!--&lt;add name="EventLog"/&gt;--&gt;
                  &lt;/listeners&gt;
              &lt;/source&gt;
          &lt;/sources&gt;
          &lt;switches&gt;
              &lt;add name="DefaultSwitch" value="Information"/&gt;
          &lt;/switches&gt;
          &lt;sharedListeners&gt;
              &lt;add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter"/&gt;
              &lt;!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log --&gt;
              &lt;!--&lt;add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/&gt; --&gt;
          &lt;/sharedListeners&gt;
      &lt;/system.diagnostics&gt;
      &lt;userSettings&gt;
          &lt;WindowsApplication1.My.MySettings&gt;
              &lt;setting name="txtPatientName" serializeAs="String"&gt;
                  &lt;value&gt;Patient Name&lt;/value&gt;
              &lt;/setting&gt;
              &lt;setting name="datastorage" serializeAs="String"&gt;
                  &lt;value/&gt;
              &lt;/setting&gt;
          &lt;/WindowsApplication1.My.MySettings&gt;
      &lt;/userSettings&gt;
  &lt;startup&gt;&lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/&gt;
  &lt;/startup&gt;
    &lt;appSettings&gt;
      &lt;add key="culture" value="cs-CZ"/&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>