title: Using Configuration Manager
body: <p>some of my web applications write to the disk on the web server.  The paths change depending on location, prod and dev, etc.  I used to store the paths in web.config under configuration / appSettings like:</p>
  
  <pre><code>&lt;add key='PDFOutPutPath'   value='C:\Temporary_Web_Files\PDFTempDocs\'/&gt;
  </code></pre>
  
  <p>And then get them like this:</p>
  
  <p>path = ConfigurationSettings.AppSettings('PDFOutPutPath')</p>
  
  <p>Now in .Net 4, I get compile warnings about this being depreciated, so I found some instructions telling me to add a configuration file, move my values to it like so:</p>
  
  <pre><code>&lt;configuration&gt; 
   &lt;appSetings&gt; 
      &lt;add key='PDFOutPutPath'   value='C:\Temporary_Web_Files\PDFTempDocs\'/&gt;
   &lt;/appSettings&gt;
  &lt;/configuration&gt; 
  </code></pre>
  
  <p>and use configuration manager like so:</p>
  
  <p>ConfigurationManager.AppSettings( 'PDFOutPutPath' )</p>
  
  <p>However, this does not work.  I'm not sure if I'm supposed to be using the configuration manager for this or not - If not, where do you put stuff like this?  I have System.Configuration referenced, so this in not my issue.</p>