title: What is the problem with my Castle ActiveRecord web.config
body: <p>I'm trying to upgrade my ASP.NET MVC 1 website to version 2.  While doing this I'm having to update all of my other assemblies as well.  This includes Castle's ActiveRecord dll as well.  Here is the error I'm getting:</p>
  
  <blockquote>
    <p>Configuration Error Description: An
    error occurred during the processing
    of a configuration file required to
    service this request. Please review
    the specific error details below and
    modify your configuration file
    appropriately.</p>
    
    <p>Parser Error Message: An error
    occurred creating the configuration
    section handler for activerecord:
    Exception has been thrown by the
    target of an invocation.</p>
  </blockquote>
  
  <pre><code>&lt;configSections&gt;
          &lt;section name="activerecord" type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler, Castle.ActiveRecord" /&gt;
  ...
  &lt;/configSections&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;activerecord isWeb="true" isDebug="false"&gt;
      &lt;config&gt;
          &lt;add
          key="hibernate.connection.driver_class"
          value="NHibernate.Driver.SqlClientDriver" /&gt;
          &lt;add
                  key="hibernate.dialect"
                  value="NHibernate.Dialect.MsSql2005Dialect" /&gt;
          &lt;add
                  key="hibernate.connection.provider"
                  value="NHibernate.Connection.DriverConnectionProvider" /&gt;
          &lt;add
                                  key="hibernate.connection.connection_string"
                                  value="Data Source=(local)\SQLEXPRESS;Initial Catalog=db;Integrated Security=SSPI;" /&gt;
      &lt;/config&gt;
  &lt;/activerecord&gt;
  </code></pre>
  
  <p>I don't see anything wrong here, I added "hibernate." to the beginning of the key's by following:</p>
  
  <p><a href="http://www.castleproject.org/activerecord/documentation/v1rc1/manual/xmlconfigref.html" rel="nofollow noreferrer">http://www.castleproject.org/activerecord/documentation/v1rc1/manual/xmlconfigref.html</a></p>
  
  <p>It didn't have that before so I thought that may have been why it was acting up.</p>