On Wed, Jul 8, 2015 at 9:25 PM, Michael Powell <[email protected]> wrote:
> Hello,
>
> I've got a strange one. Via Fluent NHibernate, but still.
>
> I've added a Component mapping, which is somehow contributing to this,
> as best I can tell. There isn't much other information to go on
> though.
>
> This is also amidst a Fluent ReferencesAny web.

Got 'er sorted out. It was the ReferencesAny trickery going on.

> Any ideas?
>
> I'll start paring back the mappings until it "works" to see what else
> it might be.
>
> FluentNHibernate.Cfg.FluentConfigurationException occurred
>   HResult=-2146233088
>   Message=An invalid or incomplete configuration was used while
> creating a SessionFactory. Check PotentialReasons collection, and
> InnerException for more detail.
>
>
>   Source=FluentNHibernate
>   StackTrace:
>        at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
>        at 
> Football.Data.Repository.Hibernate.NHibernateSessionFactoryManagerBase.CreateFactory()
> in <path>\Repository\Hibernate\NHibernateSessionFactoryManagerBase.cs:line
> 131
>   InnerException: System.NullReferenceException
>        HResult=-2147467261
>        Message=Object reference not set to an instance of an object.
>        Source=NHibernate
>        StackTrace:
>             at 
> NHibernate.Tuple.Entity.EntityMetamodel.IndicatesCollection(IType
> type)
>             at 
> NHibernate.Tuple.Entity.EntityMetamodel.IndicatesCollection(IType
> type)
>             at NHibernate.Tuple.Entity.EntityMetamodel..ctor(PersistentClass
> persistentClass, ISessionFactoryImplementor sessionFactory)
>             at 
> NHibernate.Persister.Entity.AbstractEntityPersister..ctor(PersistentClass
> persistentClass, ICacheConcurrencyStrategy cache,
> ISessionFactoryImplementor factory)
>             at 
> NHibernate.Persister.Entity.SingleTableEntityPersister..ctor(PersistentClass
> persistentClass, ICacheConcurrencyStrategy cache,
> ISessionFactoryImplementor factory, IMapping mapping)
>             at 
> NHibernate.Persister.PersisterFactory.CreateClassPersister(PersistentClass
> model, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor
> factory, IMapping cfg)
>             at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration
> cfg, IMapping mapping, Settings settings, EventListeners listeners)
>             at NHibernate.Cfg.Configuration.BuildSessionFactory()
>             at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
>        InnerException:
>
> Best regards,
>
> Michael

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to