title: ConfigurationManager.AppSettings getting null?
body: <p>I did not realize that: 'have a web.config in a separate class library and' was reading the web.config app setting from different web application.</p>
  
  <p>I am using VS2010 target framework 3.5</p>
  
  <p>I don't know what is wrong here but I am getting <code>null</code> when I try to get <code>ConfigurationManager.AppSettings["StoreId"];</code></p>
  
  <pre><code>private string _storeid = GetStoreId;
  
  public static string GetStoreId
  {
      get
      {
          return ConfigurationManager.AppSettings["StoreId"];
      }
  }
  </code></pre>
  
  <p><strong>web.config:</strong></p>
  
  <pre><code>&lt;appSettings&gt;
      &lt;add key="StoreId" value="123" /&gt;
  &lt;/appSettings&gt;
  </code></pre>