title: App.config for dll
body: <p>We have an "engine" that loads dlls dynamically (whatever is located in a certain directory) and calls Workflow classes from them by way of reflection.</p>
  
  <p>We now have some new Workflows that require access to a database, so I figured that I would put a config file in the dll directory.</p>
  
  <p>But for some reason my Workflows just don't see the config file.</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;appSettings&gt;
        &lt;add key="ConnectString" value="Data Source=officeserver;Database=mydatabase;User ID=officeuser;Password=officeuser;" /&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Given the above config file, the following code prints an empty string:</p>
  
  <pre><code>Console.WriteLine(ConfigurationManager.AppSettings["ConnectString"]);
  </code></pre>
  
  <p>I think what I want is to just specify a config filename, but I'm having problems here.  I'm just not getting results.
  Anyone have any pointers?</p>