System.Configuration.ConfigurationManager.AppSettings not working
<h2>Below is my app.config file</h2>



<pre><code>&lt;configuration&gt;
  &lt;appSettings&gt;
    &lt;add key="input_file" value="D:\bioen\Web\NewUser\dotnet\PasswordGenerator\AutoPassword\AutoPassword\Passwords.txt"/&gt;
    &lt;add key="location" value="sequals"/&gt;
  &lt;/appSettings&gt;
&lt;/configuration&gt;
</code></pre>

<hr>

<p>when I attempt to read this values in a program like what is shown below,
both strings are null. Why is this?</p>

<hr>

<pre><code>string path = System.Configuration.ConfigurationManager.AppSettings["input_file"];
string location = System.Configuration.ConfigurationManager.AppSettings["location"];
</code></pre>