Hibernate version: 1.2.1.4000
Mapping documents: ...<property name="curParentJurID" column="CurParentID" type="Nullables.NHibernate.NullableInt32Type, Nullables.NHibernate"/>...
Name and version of the database you are using:SQl Server 2000
I've just converted from NHibernate 1.0.3.0 to 1.2.1.4000. I did this by downloading the binary files for 1.2.1.400 (NHibernatye.DLL, Nullables.DL, log4net.dll etc...) and manually copying them into my folders where the 1.0.3.0 files existed). when I log into my application I get the following error:
could not interpret type: Nullables.NHibernate.NullableInt32Type, Nullables.NHibernate
I never had this problem with version 1.0.3.0 and none of the mapping files have changed (except for using urn:nhibernate-mapping-2.2 and adding default-lazy = "true")
Here is the code that loads my NHibernate mapped classes (they are embedded resources):
m_cfg = new Configuration();
m_cfg.Properties.Add("hibernate.connection.connection_string", CWTXSql.connectionString);
m_cfg.AddAssembly("WTXObjectModel"); //WTXObjectModel is the assembly containing my mappings and classes
m_factory = m_cfg.BuildSessionFactory();
The error happens when I execute the AddAssembly method
Please help!
***Note: the nullable types are being properly referenced and their properties are visible to the code (intellisense)
|