title: ASP.Net Web API : adding appSettings
body: <p>I am migrating a web service from WCF service to ASP.Net Web API. When I try to add the following section to web.config, I get a page with error "Internal Server Error" when I try to run the application locally</p>
  
  <pre><code>&lt;appSettings&gt;
      &lt;add key="Environment" value="production" /&gt;
      &lt;add key="CacheEnabled" value="true" /&gt;
    &lt;/appSettings&gt;
  </code></pre>
  
  <p>When I remove this section, the error goes away.
  Can you please tell me how to add appSettings to a Web API project?</p>