title: Can't read <appSetting> value from my ASP.NET web.config file
body: <p>I want to retrieve a value from my <code>&lt;appSettings&gt;</code> section in my <code>web.config</code> file. The key is named <code>imgServer</code>.</p>
  
  <p>I tried this but it doesn't work:</p>
  
  <pre><code>Label1.Text = System.Configuration.ConfigurationSettings.AppSettings.Get("imglServer"); 
  </code></pre>
  
  <p>I then tried:</p>
  
  <pre><code>Label1.Text = ConfigurationSettings.AppSettings["imgServer"];
  </code></pre>
  
  <p>But this doesn't work either.</p>
  
  <p>What am I doing wrong?</p>