title: Castle ActiveRecord not connecting to the database
body: <p>I recently got a work assignment to learn everything about this framework, but I can't even get it started. I read all the blogs and documentations about this particular initialization part but all of them are at least 3-4 years old and there is no updated information about it.
  <a href="https://github.com/castleproject/ActiveRecord/blob/master/docs/getting-started.md" rel="nofollow">This</a> is the official documentation on Castle ActiveRecord. I changed it a bit since the InPlaceConfigurationSource  no longer has an overload that uses the HashTable and I think this is the problem with it, since i get this exception.</p>
  
  <pre><code>    public Form1()
      {
          InitializeComponent();
  
          InPlaceConfigurationSource source = new InPlaceConfigurationSource();
  
          IDictionary&lt;string,string&gt; properties = new Dictionary&lt;string, string&gt;();
  
          properties.Add("hibernate.connection.driver_class", "NHibernate.Driver.SqlClientDriver");
          properties.Add("hibernate.dialect", "NHibernate.Dialect.MsSql2008Dialect");
          properties.Add("hibernate.connection.provider", "NHibernate.Connection.DriverConnectionProvider");
          properties.Add("hibernate.connection.connection_string", "Server=.\\SQLEXPRESS;Initial Catalog=TestDB; Trusted_Connection=true;");
  
          source.Add(typeof(ActiveRecordBase), properties);
  
          ActiveRecordStarter.Initialize(source, typeof(Blog));
      }
  </code></pre>
  
  <blockquote>
    <p>The type initializer for 'Castle.ActiveRecord.ActiveRecordStarter' threw an exception.</p>
    
    <p>"Could not load type 'Iesi.Collections.Generic.HashedSet'1' from assembly 'Iesi.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'.":"Iesi.Collections.Generic.HashedSet`1"             </p>
  </blockquote>