Please try to reproduce the issue in a minimal test case. ( http://nhforge.org/blogs/nhibernate/archive/2008/10/04/the-best-way-to-solve-nhibernate-bugs-submit-good-unit-test.aspx )
2013/11/6 epitka <[email protected]> > Forgot to include stack trace > > SetUp : NHibernate.MappingException : Unable to instantiate mapping class > (see InnerException): > dnnSphere.Playground.One2One.Unidirectional.UsingFK.PlayerMap > ----> System.Reflection.TargetInvocationException : Exception has been > thrown by the target of an invocation. > ----> System.ArgumentNullException : Value cannot be null.Parameter name: > localMember > at NHibernate.Mapping.ByCode.ModelMapper.AddMapping(Type type) > at NHibernate.Mapping.ByCode.ModelMapper.AddMappings(IEnumerable`1 types) > at > dnnSphere.GeneratedCodeTestBed.NHibernateConfiguration.BuildSessionFactory(String > connectionString) in NHibernateConfiguration.cs: line 47 > at dnnSphere.GeneratedCodeTestBed.Bootstrapper.BootstrapStructureMap() in > Bootstrapper.cs: line 21 > at > dnnSphere.GeneratedCodeTestBed.PersistanceTests.PersistenceFixtureBase.SetupFixture() > in PersistanceFixtureBase.cs: line 44 > --TargetInvocationException > at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean > publicOnly, Boolean noCheck, ref Boolean canBeCached, ref > RuntimeMethodHandleInternal ctor, ref Boolean bNeedSecurityCheck) > at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean > skipCheckThis, Boolean fillCache, ref StackCrawlMark stackMark) > at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, > Boolean skipCheckThis, Boolean fillCache, ref StackCrawlMark stackMark) > at System.Activator.CreateInstance(Type type, Boolean nonPublic) > at System.Activator.CreateInstance(Type type) > at NHibernate.Mapping.ByCode.ModelMapper.AddMapping(Type type) > --ArgumentNullException > at NHibernate.Mapping.ByCode.PropertyPath..ctor(PropertyPath previousPath, > MemberInfo localMember) > at > NHibernate.Mapping.ByCode.Impl.CustomizersImpl.PropertyContainerCustomizer`1.RegistePropertyMapping(Action`1 > mapping, MemberInfo[] members) > > > On Wednesday, November 6, 2013 11:13:44 AM UTC-6, epitka wrote: >> >> I have mapping that works fine using Fluent NHibernate but mapping same >> property using new mapping by code fails? Is this a bug, unfinished feature >> or something else? >> >> >> -- > 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/groups/opt_out. > -- 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/groups/opt_out.
