Lets Have a fun with Technology.

BTemplates.com

Follow by Email

Wednesday, January 27, 2016

NHibernate.MappingException: Could not compile the mapping document


Error Message

NHibernate.MappingException: Could not compile the mapping document: Nhibernate.
User.hbm.xml ---> NHibernate.MappingException: persistent class Nhibernate.User,
 Nhibernate not found ---> System.TypeLoadException: Could not load type 'Nhiber
nate.User' from assembly 'NHibernate, Version=1.2.0.3002, Culture=neutral, Publi

cKeyToken=aa95f207798dfdb4'.

Solution

This error message point to that the compiler does not know the Nhibernate.User class. 

You should check if you have deployed and referred your assembly correctly. 

Also need to check if you have included the correct name space.


Hope this will help you.


0 comments:

Post a Comment