NHibernate Jet Driver
I wanted to connect Castle ActiveRecord to Microsoft Access (don’t ask me why), and struggled to find the required NHibernate Jet driver, in a compiled form. So I built the source against .NET 3.5, and you can download it here:
NHibernate.JetDriver.dll for .NET 2.0
NHibernate.JetDriver.dll for .NET 4.0
NHibernate.JetDriver.dll for .NET 4.5



iPudding 10:51 am on November 14, 2010 Permalink |
Hi, I’ve use your dll. It has error like this:-
—-> System.IO.FileLoadException : Could not load file or assembly ‘NHibernate, Version=2.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4′ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0×80131040)
Are there another dependencies should I import? Please help me. Thanks
iPudding 11:18 am on November 14, 2010 Permalink |
Sorry about my previous post. The problem cause from NHibernate v.3 isn’t compatible with this version of NHibernate.JetDriver. It must use with NHibernate v.2.1.0.4000 only.
Roberto 12:38 pm on December 8, 2010 Permalink |
There is a compatible version for NHibernate 3?
Else, could you suggest me a “local” database for a windows application? (i don’t like idea to make install of a sql server express on clients computers)
loktionoff 2:58 am on March 12, 2011 Permalink |
Actually the NHibernate Jet Driver works with NHibernate 3.x, however there is a little trick with assembly binding redirection that you have to implement. Add the following snippet to your app/web configuration file:
vnik 9:25 am on March 29, 2011 Permalink |
Hi loktionoff, can you please publish the snippet?
Test method FirstSolution.Tests.GenerateSchema_Fixture.CanGenerateSchema threw exception: NHibernate.MappingException: Could not compile the mapping document: FirstSolution.Mapping.Product.hbm.xml —> NHibernate.HibernateException: Could not instantiate dialect class NHibernate.JetDriver.JetDialect, NHibernate.JetDriver —> System.IO.FileNotFoundException: Impossible to load the file or the Assembly ‘NHibernate, Version=2.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4′.
[I'm using NHibernate v3]
If I solve I’ve to write a little guide just to join all the efforts in the web that I found
Eddy 9:26 pm on August 9, 2012 Permalink |
I’m converting my project from vs 2005 to 2010 v4.0. Looks like I have update NHibernate 1.x to some version. Do you have jet drivers compiled for .net v4.0? Any recommendation on the NHibernate version that I should upgrade? Thank in advance.
Richard 12:04 pm on August 13, 2012 Permalink |
Hi Eddy, I have added some additional download options. For (my) future reference, the source can be downloaded from here: https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib/trunk/src/NHibernate.JetDriver/src/