Nhibernate MappingException could not compile the mapping document

The following error is generally caused when there is a misspelling or case miss match between the class file and the mapping file. Review the contents of both and confirm spelling and case are the same so that the ‘Could not compile the mapping document: hbm.xml’ error can be avoided.

image

The inner exception is something like the following:

{“class NAMESPACE.CLASSNAME, NAMESPACE, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null not found while looking for property: CLASSNAME”}