Providing my configuration code is difficult, but if there's no other way to go about this, I can of course try to create a failing test in FNH. That's going to take hours of work, though (it's hundreds of mappings), so I would love to be able to figure this out by other means first. Most of the stack trace is as follows:
--FluentConfigurationException at FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration() in D:\AUL\Dev\Misc\fluent-nhibernate\src\FluentNHibernate\Cfg\FluentConfiguration.cs: line 264 at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() in D:\AUL\Dev\Misc\fluent-nhibernate\src\FluentNHibernate\Cfg\FluentConfiguration.cs: line 230 --MappingException at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception) at NHibernate.Cfg.Configuration.AddDeserializedMapping(HbmMapping mappingDocument, String documentFileName) at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc) at NHibernate.Cfg.Configuration.ProcessMappingsQueue() at NHibernate.Cfg.Configuration.AddDocumentThroughQueue(NamedXmlDocument document) at NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader, String name) at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name) at NHibernate.Cfg.Configuration.AddDocument(XmlDocument doc, String name) at NHibernate.Cfg.Configuration.AddDocument(XmlDocument doc) at FluentNHibernate.PersistenceModel.Configure(Configuration cfg) in PersistenceModel.cs: line 293 at FluentNHibernate.Automapping.AutoPersistenceModel.Configure(Configuration configuration) in D:\AUL\Dev\Misc\fluent-nhibernate\src\FluentNHibernate\Automapping\AutoPersistenceModel.cs: line 201 at FluentNHibernate.Cfg.AutoMappingsContainer.Apply(Configuration cfg, PersistenceModel model) in D:\AUL\Dev\Misc\fluent-nhibernate\src\FluentNHibernate\Cfg\AutoMappingsContainer.cs: line 86 at FluentNHibernate.Cfg.MappingConfiguration.Apply(Configuration cfg) in D:\AUL\Dev\Misc\fluent-nhibernate\src\FluentNHibernate\Cfg\MappingConfiguration.cs: line 85 at FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration() in D:\AUL\Dev\Misc\fluent-nhibernate\src\FluentNHibernate\Cfg\FluentConfiguration.cs: line 252 --DuplicateMappingException at NHibernate.Cfg.Mappings.AddClass(PersistentClass persistentClass) at NHibernate.Cfg.XmlHbmBinding.SubclassBinder.HandleSubclass(PersistentClass model, HbmSubclass subClassMapping, IDictionary`2 inheritedMetas) at NHibernate.Cfg.XmlHbmBinding.ClassBinder.BindSubclasses(IEnumerable`1 subclasses, PersistentClass persistentClass, IDictionary`2 inheritedMetas) at NHibernate.Cfg.XmlHbmBinding.RootClassBinder.Bind(HbmClass classSchema, IDictionary`2 inheritedMetas) at NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.AddRootClasses(HbmClass rootClass, IDictionary`2 inheritedMetas) at NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.AddEntitiesMappings(HbmMapping mappingSchema, IDictionary`2 inheritedMetas) at NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.Bind(HbmMapping mappingSchema) at NHibernate.Cfg.Configuration.AddDeserializedMapping(HbmMapping mappingDocument, String documentFileName) -- Asbjørn Ulsberg -=|=- [email protected] (mailto:[email protected]) «He's a loathsome offensive brute, yet I can't look away» On mandag 5. september 2011 at 14:11, James Gregory wrote: > Could you show your configuration code? There were some issues with the > Mappings method being called multiple times before. > > -- > You received this message because you are subscribed to the Google Groups > "Fluent NHibernate" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/fluent-nhibernate/-/kYDRnk8MgysJ. > To post to this group, send email to [email protected] > (mailto:[email protected]). > To unsubscribe from this group, send email to > [email protected] > (mailto:[email protected]). > For more options, visit this group at > http://groups.google.com/group/fluent-nhibernate?hl=en. -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" 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/fluent-nhibernate?hl=en.
