mimranshafiq wrote:
hi
i am receiveing this error
i also set Embedded Resource property of my User.hbm.xml file
Could not compile the mapping document: Nhibernate.User.hbm.xml
Loading hibernate.cfg.xml...
Loading mapping files in this executable...
16:58:05,125 ERROR ReflectHelper:0 - Could not load type Nhibernate.User, Nhiber
nate.
System.TypeLoadException: Could not load type 'Nhibernate.User' from assembly 'N
Hibernate, Version=1.2.0.3002, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'
.
I'm going to guess that your User class is not in the NHibernate assembly. You may have thought that the NHibate.User, <this section> referred to the namespace, but it is not. It is meant to be the assembly which contains your class definition. Most likely you set the incorrect assembly, since your user class will not be in the NHibernate assembly. Put the correct assembly name there (based on your project's configuration) and all should work fine.