title: Can't read appSettings value from Web.Config
body: <p>I have the following in my web.config: </p>
  
  <pre><code>&lt;configuration&gt;
      &lt;appSettings&gt;
          &lt;add key="PsychMon" value="true"/&gt;
      &lt;/appSettings&gt;
   . . .
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I have the following code in my codebehind:  </p>
  
  <pre><code>  System.Configuration.Configuration webConfig = 
  System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(null) ; 
  </code></pre>
  
  <p>However, when I look at webConfig, webConfig.AppSettings.Settings.Count = 0 . </p>
  
  <p>Why is it not reading the app setting?</p>
  
  <p>What I want to do is be able to get the setting by using: </p>
  
  <pre><code>          System.Configuration.KeyValueConfigurationElement psych = 
  webConfig.AppSettings.Settings["PsychMon"];
  </code></pre>
  
  <p>I am using c# 3.5, vs 2008</p>