title: "String Does Not Contain Definition For Value"
body: <p>I am extracting the value in the app.config for the key of <code>keyUri</code> and see this syntax <a href="https://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.appsettings(v=vs.110).aspx" rel="nofollow noreferrer">used by MS</a>, as well as having used this syntax as well when doing connection strings.  In the below snippet (<code>System.Configuration</code> has been added, and the DLL has been added) of C#, I am getting this error:</p>
  
  <p><strong>C#</strong></p>
  
  <pre><code>/// Error on the .Value
  string keyUri = ConfigurationManager.AppSettings["keyUri"].Value;
  </code></pre>
  
  <p><strong>app.config</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;startup&gt;
      &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt;
    &lt;/startup&gt;
    &lt;appSettings&gt;
      &lt;add key="keyUri" value="test" /&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Based on the code, it should be looking within the <code>&lt;appSettings&gt;</code>, and returning the value for the key <code>keyUri</code>.  Instead, I get an error stating, </p>
  
  <blockquote>
    <p>"String Does Not Contain Definition For Value"</p>
  </blockquote>