PDA

View Full Version : Problem with NHibernate 1.2.0 Alpha1 +Spring.Data.NHibernate


zerg78
09-06-2006, 02:58 PM
After change NHibernate's version to 1.2.0 Alpha1 and after upgrade Spring version up to last night build I have errors:

1) The type 'NHibernate.ISession' is defined in an assembly that is not referenced. You must add a reference to assembly 'NHibernate, Version=1.0.1.0, Culture=neutral, PublicKeyToken=154fdcb44c4484fc'.

2)'NHibernate.ISession' does not contain a definition for 'CreateQuery'

Have you any ideas, what do I do wrong?

jnapier
09-06-2006, 05:43 PM
I dont believe that the nightly build references the 1.2 Alpha version of NHibernate. You will have to downloaded the lastest source and compile it against the version of NHibernate that you want to use.

You could also try a binding redirect. That may work for your setup.

zerg78
09-07-2006, 08:52 AM
Thanks. Problem solved. I did not build Spring.Data.NHibernate with last version of NHibernate.