Hello everyone,
I come here to request some help, I try to activate the second lvl cache for Nhibernate (Latest version 2.1).
(I have downloaded the latest version of the cache file)
I have well copied the 3 DLL, into the applicatino directory :
Bamboo.Prevalence.dll
Bamboo.Prevalence.Util.dll
NHibernate.Caches.Prevalence.dll
But everytime I add this line inside my hibernate.cfg.xml file (everything is ok without this line) :
Code:
<property name="cache.provider_class">NHibernate.Caches.Prevalence.PrevalenceCacheProvider, NHibernate.Caches.Prevalence</property>
I have this fellowing error everytime I build my session factory using this :
Code:
return (new Configuration()).Configure().BuildSessionFactory();
Here are the logged errors :
Code:
'FIH_MVP_Demo.vshost.exe' (Managed): Loaded 'D:\My Folder\VS2008\FIH_MVP_Demo\FIH_MVP_Demo\bin\Debug\NHibernate.ByteCode.Castle.dll'
'FIH_MVP_Demo.vshost.exe' (Managed): Loaded 'D:\My Folder\VS2008\FIH_MVP_Demo\FIH_MVP_Demo\bin\Debug\NHibernate.Caches.Prevalence.dll'
A first chance exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileLoadException' occurred in NHibernate.dll
A first chance exception of type 'NHibernate.HibernateException' occurred in NHibernate.dll
A first chance exception of type 'System.TypeInitializationException' occurred in Presenter.dll
Do you have an idea where is the problem ?
Tx you for your help !! Been 4 hours I'm on it :)