Hi Guys
I am trying to implement a 2nd level caching system and am receiving errors in the web.config
I have the following in my web.config:
Code:
   <configSections>
    <section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" requirePermission="false"/>
    <section name="syscache" type="NHibernate.Caches.SysCache.SysCacheSectionHandler,NHibernate.Caches.SysCache" />   
  </configSections>
<!-- NHibernate -->
  <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
    <session-factory>
      <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
      <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
      <property name="connection.connection_string">Data Source=.\sql2008express;Initial Catalog=Buzz;Persist Security Info=True;User ID=sa;Password=p</property>
      <property name="show_sql">true</property>
      <property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
      <property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
   <property name="cache.provider_class">NHibernate.Caches.SysCache.SysCacheProvider, NHibernate.Caches.SysCache</property>
      <property name="cache.use_second_level_cache">true</property> 
    </session-factory>
  </hibernate-configuration>
  
    <syscache>
      <cache region="LongTerm" expiration="3600" priority="5" />
      <cache region="ShortTerm" expiration="900" priority="3" />
    </syscache>
NHibernate seems to be complaining about the:
Quote:
 <section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" requirePermission="false"/>
    <section name="syscache" type="NHibernate.Caches.SysCache.SysCacheSectionHandler,NHibernate.Caches.SysCache" />
I have added the NHibernate.Caches.SysCache dll to the asp.net mvc app, all runs fine if I remove the above to section
Is this nhibernate versioning issues?