0

I am using s#arp which is built against NHibernate 2.1.1.4000, However I would like to use NHibernate.Caches.SysCache as my second level cache. However the Nhibernate contrib caches are built against NHibernate 2.1.2.4000 which obviously gives me a problem.

Can anyone point me to a URL that I can download NHibernate.Caches.SysCache.dll that is built against NHibernate 2.1.1.4000

Or is there another 2nd level cache provider that is easy to implement and is built against NHibernate 2.1.1.4000

Thanks

Lachlan Roche
  • 25,678
  • 5
  • 79
  • 77
Rippo
  • 22,117
  • 14
  • 78
  • 117
  • why don't you just grab the source code and compile it with NHibernate 2.1.1.4000? – Emmanuel Feb 20 '10 at 16:01
  • mmm, I was thinking about this, however I was hoping that someone might have a link to the DLL that I need. – Rippo Feb 20 '10 at 16:29

2 Answers2

3

I would update to the 2.1.2 build of NHibernate core and NHCache from nhforge.org, and use an assembly binding redirect to update the s#arp reference.

<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <dependentAssembly>
            <assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4"/>
            <bindingRedirect oldVersion="2.1.1.4000" newVersion="2.1.2.4000"/>
         </dependentAssembly>
      </assemblyBinding>
   </runtime>
</configuration>
Lachlan Roche
  • 25,678
  • 5
  • 79
  • 77
  • +1 Thanks for this, I was hoping for a quick fix where I could just download the correct version of the DLL – Rippo Feb 20 '10 at 16:30
  • I did this the other way around, I did not update nHibernate rather set my binding redirect from `old=2.1.2.4000` to `new=2.1.1.4000`, seems to have done the trick – Rippo Feb 22 '10 at 16:03
1

S#arp Architecture 1.5.2 supports NHibernate 2.1.2.4000 out of the box now. If you can move to MVC 2, you can upgrade to this version.

Alec
  • 691
  • 4
  • 12