Ah, yes. If I do an ex.ToString() instead of an ex.Message, I get the following ( I will look this over now but wanted to submit it because your expertise in this area is certainly better than mine):
ERROR: NHibernate.MappingException: Could not compile the mapping document: Firs tSample.Mappings.Tester.hbm.xml ---> NHibernate.MappingException: Problem trying to set property type by reflection ---> NHibernate.MappingException: class Firs tSample.Domain.Tester, FirstSample, Version=1.0.0.0, Culture=neutral, PublicKeyT oken=null not found while looking for property: City ---> NHibernate.PropertyNot FoundException: Could not find field 'City' in class 'FirstSample.Domain.Tester' at NHibernate.Properties.FieldAccessor.GetField(Type type, String fieldName, Type originalType) at NHibernate.Properties.FieldAccessor.GetField(Type type, String fieldName, Type originalType) at NHibernate.Properties.FieldAccessor.GetField(Type type, String fieldName) at NHibernate.Properties.FieldAccessor.GetGetter(Type theClass, String proper tyName) at NHibernate.Util.ReflectHelper.GetGetter(Type theClass, String propertyName , String propertyAccessorName) at NHibernate.Util.ReflectHelper.ReflectedPropertyClass(String className, Str ing name, String accessorName) --- End of inner exception stack trace --- at NHibernate.Util.ReflectHelper.ReflectedPropertyClass(String className, Str ing name, String accessorName) at NHibernate.Mapping.SimpleValue.SetTypeUsingReflection(String className, St ring propertyName, String accesorName) --- End of inner exception stack trace --- at NHibernate.Mapping.SimpleValue.SetTypeUsingReflection(String className, St ring propertyName, String accesorName) at NHibernate.Cfg.XmlHbmBinding.ClassBinder.CreateProperty(IValue value, Stri ng propertyName, String className, XmlNode subnode, IDictionary`2 inheritedMetas ) at NHibernate.Cfg.XmlHbmBinding.ClassBinder.PropertiesFromXML(XmlNode node, P ersistentClass model, IDictionary`2 inheritedMetas, UniqueKey uniqueKey, Boolean mutable, Boolean nullable, Boolean naturalId) at NHibernate.Cfg.XmlHbmBinding.ClassBinder.PropertiesFromXML(XmlNode node, P ersistentClass model, IDictionary`2 inheritedMetas) at NHibernate.Cfg.XmlHbmBinding.RootClassBinder.Bind(XmlNode node, HbmClass c lassSchema, IDictionary`2 inheritedMetas) at NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.AddRootClasses(XmlNode pare ntNode, IDictionary`2 inheritedMetas) at NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.Bind(XmlNode node) at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc) --- End of inner exception stack trace --- at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception) at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc) at NHibernate.Cfg.Configuration.ProcessMappingsQueue() at NHibernate.Cfg.Configuration.AddDocumentThroughQueue(NamedXmlDocument docu ment) at NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader, String name ) at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name) at NHibernate.Cfg.Configuration.AddResource(String path, Assembly assembly) at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly) at FirstSample.Repositories.NHibernateHelper.get_SessionFactory() in E:\visua l_studio_projects\nHibernate2\FirstSample\Repositories \NHibernateHelper.cs:line 23 at FirstSample.Repositories.NHibernateHelper.OpenSession() in E: \visual_studi o_projects\nHibernate2\FirstSample\Repositories \NHibernateHelper.cs:line 34 at FirstSample.DBTest.CreateInitialData() in E: \visual_studio_projects\nHiber nate2\FirstSample\DBTest.cs:line 106 -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
