NHibernate.DuplicateMappingException : Duplicate class/entity mapping

Monday, October 27th, 2008

This exception occures when I’ve started my unit tests. In my case it occurres because I have specified
<mapping assembly="<assembly_name>"/>
in NHibernate configuration file. I guess that somehow hbm files and assembly that embedes them are both taken into account by NHibernate engine in the case of running tests. When I removed this element from configuration [...]