title: NHibernate rises NHibernate.HibernateException : Could not find named connection
body: <p>I want to try a simple example with Active Record + MSSQL2012.
  Here is my App.config file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" /&gt;
    &lt;/configSections&gt;
    &lt;startup&gt;
    &lt;/startup&gt;
    &lt;hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"&gt;
      &lt;session-factory&gt;
        &lt;property name="proxyfactory.factory_class"&gt;NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle&lt;/property&gt;
        &lt;property name="dialect"&gt;NHibernate.Dialect.MsSql2008Dialect, NHibernate&lt;/property&gt;
        &lt;property name="connection.connection_string_name"&gt;Server=(local);initial catalog=DemoDB;Integrated Security=SSPI&lt;/property&gt;     
      &lt;/session-factory&gt;
    &lt;/hibernate-configuration&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Locally I have a very simple database <strong>DemoDB</strong> with 3 tables, I've connected to if via SQL Management Studio.</p>
  
  <p>Employee class:</p>
  
  <blockquote>
    <p>using Castle.ActiveRecord;</p>
    
    <p>namespace ActiveRecordDemo.Domain {
        [ActiveRecord]
        public class Employee : ActiveRecordBase
        {
            [PrimaryKey]
            public int Id { get; set; }</p>
  
  <pre><code>    [Property]
      public string FirstName { get; set; }
  
      [Property]
      public string LastName { get; set; }
  
      [BelongsTo(Type = typeof(Department), Column = "Id")]
      public Department Department
      {
          get;
          set;
      }
  } }
  </code></pre>
  </blockquote>
  
  <p>When I run the code</p>
  
  <blockquote>
    <p>ActiveRecordStarter.Initialize(ActiveRecordSectionHandler.Instance,
    typeof(Company), typeof(Department), typeof(Employee));
    IList employees = Employee.FindAllByProperty("FirstName",
    firstName);</p>
  </blockquote>
  
  <p>I get an error:</p>
  
  <blockquote>
    <p>NHibernate.HibernateException : Could not find named connection string
    Server=(local);initial catalog=DemoDB;Integrated Security=SSPI</p>
  </blockquote>
  
  <p>What's wrong with the connection?</p>