The error in the log is:
Code:
2006-05-18 13:50:20,125 [616] INFO NHibernate.Cfg.Environment - NHibernate 1.0.2
2006-05-18 13:50:20,187 [616] INFO NHibernate.Cfg.Environment - Using reflection optimizer
2006-05-18 13:50:20,187 [616] INFO NHibernate.Cfg.Configuration - Searching for mapped documents in assembly: CarroDiretoTO
2006-05-18 13:50:20,218 [616] INFO NHibernate.Cfg.Configuration - Found mapping documents in assembly: CarroDiretoTO.AddressTypeTO.hbm.xml
2006-05-18 13:50:20,781 [616] INFO NHibernate.Dialect.Dialect - Using dialect: NHibernate.Dialect.MsSql2000Dialect
2006-05-18 13:50:20,921 [616] ERROR NHibernate.Cfg.Configuration - Could not compile the mapping document
NHibernate.MappingException: persistent class Hst.HstCore.TO.AddressTypeTO, CarroDiretoTO not found ---> System.TypeLoadException: Could not load type 'Hst.HstCore.TO.AddressTypeTO, CarroDiretoTO', check that type and assembly names are correct
at NHibernate.Util.ReflectHelper.ClassForName(String name)
at NHibernate.Cfg.Binder.ClassForFullNameChecked(String fullName, String errorMessage)
--- End of inner exception stack trace ---
at NHibernate.Cfg.Binder.ClassForFullNameChecked(String fullName, String errorMessage)
at NHibernate.Cfg.Binder.BindClass(XmlNode node, PersistentClass model, Mappings mapping)
at NHibernate.Cfg.Binder.BindRootClass(XmlNode node, RootClass model, Mappings mappings)
at NHibernate.Cfg.Binder.BindRoot(XmlDocument doc, Mappings model)
at NHibernate.Cfg.Configuration.AddValidatedDocument(XmlDocument doc)
I don´t know what happens, because the AddressTypeTO is in dll
and in the cs file I can referece this class normally. :(