title: Can't read keys from App.config
body: <p>I want to read some values from my project's App.config file, but when I do this:</p>
  
  <pre><code>var appsettings = System.Configuration.ConfigurationManager.AppSettings;
  </code></pre>
  
  <p>I only get four entries: <code>StopTestRunCallTimeoutInSeconds</code>, <code>LogSizeLimitInMegs</code>, <code>CreateTraceListener</code> and <code>GetCollectorDataTimeout</code>, which aren't even listed in the XML. My keys <code>username</code> and <code>password</code> do not even appear.</p>
  
  <p>My App.Config looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;startup&gt;
      &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt;
    &lt;/startup&gt;
    &lt;appSettings&gt;
      &lt;add key="username" value="Administrator" /&gt;
      &lt;add key="password" value="password" /&gt;
    &lt;/appSettings&gt;
    &lt;system.web&gt;
      &lt;membership defaultProvider="ClientAuthenticationMembershipProvider"&gt;
        &lt;providers&gt;
          &lt;add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" /&gt;
        &lt;/providers&gt;
      &lt;/membership&gt;
      &lt;roleManager defaultProvider="ClientRoleProvider" enabled="true"&gt;
        &lt;providers&gt;
          &lt;add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" /&gt;
        &lt;/providers&gt;
      &lt;/roleManager&gt;
    &lt;/system.web&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Am I missing something? It seems to me like I was reading from a totally different config file, but there is no other one.</p>