title: Enterprise Library Logging : Activation error occured while trying to get instance of type LogWriter, key ""
body: <p>I'm trying to write a log without having a configuration file by using Fluent API.</p>
  
  <p>this is my code:</p>
  
  <pre><code> var builder = new ConfigurationSourceBuilder();
                  builder.ConfigureData()
                  .ForDatabaseNamed("Logging")
                  .ThatIs.ASqlDatabase()
                  .WithConnectionString(ConnectionString)
                  .AsDefault();
  
   var configSource = new DictionaryConfigurationSource();
   builder.UpdateConfigurationWithReplace(configSource);
  
   var logger = EnterpriseLibraryContainer.Current.GetInstance&lt;LogWriter&gt;();
  
   logger.Write("Test", "General");
  </code></pre>
  
  <p>when I run this it just says that </p>
  
  <blockquote>
    <p>Activation error occured while trying to get instance of type LogWriter, key ""</p>
  </blockquote>
  
  <p>what did I do wrong in configuration ?</p>