When got this error using NHibernate, it’s likely that your mappings and data models are not registered with the NHibernate configuration object.
Simply add the Assembly that contains the mapping files and the model declaration and it will work.
Also, make sure the mapping files are configured to be embedded resource in the project.