HybernetTestApp.User.hbm.xml(3,2): XML validation error: The 'urn:nhibernate-mapping-2.2:hibernet-mapping' element is not declared. this error apears that 'urn:nhibernate-mapping-2.2:hibernet-mapping' element is not declared. hmm it does not exists this line should be <hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" assembly="assemblyName"> (or for version 1.2.1 <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="assemblyName"> (i can't see others place that maybe incorrect sintax, u should look with more attention!) good luck!