title: Fluent NHibernate configuration issue when calling from different assemblies
body: <p>I have a project structure like this:<br>
  1. NHibernate Base classes to open session, data access function and CRUD methods. (Dll)<br>
  2. An exectue program (windows forms) which has domain classes and mappers in a separate namespace.  (EXE)<br>
  3. NUnit test cases (Dll)<br>
  I have used the following code to create configuration:</p>
  
  <pre><code>public Configuration BuildConfig()
  {
      var configuration = new Configuration();
      return Fluently.Configure(configuration)
          .Mappings(cfg =&gt; {
              cfg.FluentMappings.AddFromAssembly(Assembly.GetEntryAssembly());
          }).BuildConfiguration();
  }
  </code></pre>
  
  <p>When I tried to create configuration from 2n program (Windows forms application) the configuration has successfully done.</p>
  
  <p>Now I've referenced both the above assemblies in NUnit Test assembly and I have copied the same configuration settings (app.config) as the windows form. Fluent is not able to build the session factory and I'm getting the following exception:</p>
  
  <pre><code>FluentNHibernate.Cfg.FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.
    Database was not configured through Database method.
  </code></pre>
  
  <p>Please help me to resolve this issue.</p>