-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Lvl 2 cache configuration problem.
PostPosted: Wed Jul 29, 2009 10:41 am 
Newbie

Joined: Wed Jul 29, 2009 10:28 am
Posts: 2
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 :)


Top
 Profile  
 
 Post subject: Re: Lvl 2 cache configuration problem.
PostPosted: Wed Jul 29, 2009 11:45 am 
Newbie

Joined: Wed Jul 29, 2009 10:28 am
Posts: 2
Find myself the solution to the problem :

".Net Reflector is your friend" !!!

Indead, the Nhibernate DLL assembly against wich the various cache provider have been built was 2.1.0.4

While, I was using locally a Nhibernate 2.1.0.3 version !!!!

==> Had upgraded the DLL version of my project and everything is fine now !!!

so with this strange type of error (FileLoadException) ===> Look at the version of Nhibernate used for the compiled cache lvl 2 providers !!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.