title: Getting configuration settings from web.config/app.config using class library
body: <p>Configuration settings in 3.5 is driving me nuts... Help! ;)</p>
  
  <p>I have a class library (Named ADI), that needs some configuration settings from the project using it (like connectionstring, filesystem locations etc).</p>
  
  <p>I want to define these settings in my Windows Forms/Web Projects App.Config or Web.Config, like other settings.</p>
  
  <p>Here is part of my app.config for my windows forms application: </p>
  
  <pre><code>&lt;applicationSettings&gt;
      &lt;PhotoImportRobot.My.MySettings&gt;
        &lt;setting name="ADIImageRoot" serializeAs="String"&gt;
          &lt;value&gt;C:\DataTemp\ADI\Original\&lt;/value&gt;
        &lt;/setting&gt;
        &lt;setting name="ADIImageVariantsRoot" serializeAs="String"&gt;
          &lt;value&gt;C:\DataTemp\ADI\Variants\&lt;/value&gt;
        &lt;/setting&gt;
      &lt;/PhotoImportRobot.My.MySettings&gt;
  &lt;/applicationSettings&gt;
  </code></pre>
  
  <p>How do I access that from my class library??</p>
  
  <p>I tried this:</p>
  
  <pre><code>System.Configuration.ConfigurationManager.AppSettings("ADIImageVariantsRoot")
  </code></pre>
  
  <p>What to do?</p>