asp.net - Moving from NHibernate to FluentNHibernate: assembly error (related to versions)? -


Definitely where to start, but I have found the most recent versions of NHibernate, etc. While going to FluentNHibernate and trying to do the same thing, I found this error message on Build:

"System.IO.FileLoadException: Could not load file or assembly 'NHibernate, Version = 2.1.0.4000, culture = neutral, public key token = AAA 9 520209 8 dfdb4 'or one of its dependencies. The manifest definition of the assembled assembly does not match the assembly reference. "

Background: I am new to Hibernate

Databay Class

Database Category ID (Type: IT), Unique, Auto-incremental UserID (Type: Exclusive Disadvantifier) ​​- The value of user guides is given in the ASP.NET database. Title (type: varchar (50) - Category title

Component Component:

  • I have a session class class that is database
  • I have an orbit class in which all virtual methods for FluNet NHbernet are override
  • I have a range map: Classmodap class, which makes fluent mapping for the unit
  • I have a category repository class that includes Add and A
  • Save Category

  • I have a TestCatAdd.aspx file that uses Category Repository Class.
< P> Would be happy to post code for any of them, but I am not sure that it is necessary, as I think this issue is that there is a difference version that is the FluentNHibernate reference and before NHibernate I

Any help you can give thanks in advance!

There is no such thing as "FluentNHibernate from NHibernate".

FluentNHibernate is an addon for NHibernate, which provides slightly different ways to create mapping.

The error message is obvious: you are using the version of FluentNHibernate compiled for NHibernate 2.1.0, and you have it conflict NHibernate 2.1.2, hence version conflict.

Download either a version of OHUN which uses NH 2.1.2 or compiles it from source.


Comments