title: Using appsettings, but "ConfigurationSettings" method is obsolete
body: <p>I've trying to access an appsettings key value in my vb.net 2.0 web application.</p>
  
  <p>I've put the key in the app.config file:</p>
  
  <pre><code>&lt;appSettings&gt;
      &lt;add key="DownloadURL" value="http://&lt;myURL&gt;/" /&gt;
  &lt;/appSettings&gt;
  </code></pre>
  
  <p>I've followed the instructions <a href="http://www.codeproject.com/KB/dotnet/config.aspx" rel="nofollow">here</a>, and it says that I need to access this key like so:</p>
  
  <pre><code>URL = System.Configuration.ConfigurationSettings.AppSettings("DownloadURL")
  </code></pre>
  
  <p>But I get the following message:</p>
  
  <blockquote>
    <p>Public Shared Readonly property
    AppSettings() As
    'System.Collections.Specialized.NameValueCollection'
    is obsolete: 'This method is obsolete,
    it has been replaced by
    System.configuration!System.configuration.configurationmanager.AppSettings'</p>
  </blockquote>
  
  <p>I tried to replace the old method with the new one, but it does not exist.</p>
  
  <p>Strange, since I've done a similar thing with a web app and it did exist there.</p>