NHibernate.HibernateException ----> NHibernate.Cache.NoCachingEnabledException
NHibernate.HibernateException : Could not instantiate cache implementation
----> NHibernate.Cache.NoCachingEnabledException : Second-level cache is not enabled for usage [hibernate.cache.use_second_level_cache | hibernate.cache.use_query_cache]
After upgrading to the latest version the site keeps throwing this error during initialization.
Update the following web.config section:
<nhibernate>
...
<add key="use_second_level_cache" value="false" />
</nhibernate>
The 1.2 version of the NHibernate library introduces a new exception that warns for configuration mistakes. Since N2 mapping files are cache-enabled NHibernate needs to know the deal with caching. Of course if you want caching set the setting to true and configure "hibernate.cache.provider_class".