title: Activation error occured while trying to get instance of type Database, key ""
body: <p>I am using Enterprise Library 5.0
  I am setting connecting string run time. (Default connection string.)</p>
  
  <p>When Following line is executed,</p>
  
  <pre><code> Database db = DatabaseFactory.CreateDatabase();
  </code></pre>
  
  <p>I am getting error, "Activation error occured while trying to get instance of type Database, key """</p>
  
  <p>At same time, in app config, there is connecting string.</p>
  
  <p>However, on restarting application, it works fine.</p>
  
  <p>I have also checked <a href="https://stackoverflow.com/questions/4030436/activation-error-occured-while-trying-to-get-instance-of-type-database-key">Activation error occured while trying to get instance of type Database, key &quot;&quot; &lt;-- blank</a> , but this doesn't help.</p>