I keep encountering the following error when using NHibernate.Linq
System.NullReferenceException: Object reference not set to an instance of an object.
at NHibernate.Linq.Visitors.AssociationVisitor..ctor(ISessionFactoryImplementor sessionFactory)
at NHibernate.Linq.NHibernateQueryProvider.TranslateExpression(Expression expression)
at NHibernate.Linq.NHibernateQueryProvider.Execute(Expression expression)
at NHibernate.Linq.QueryProvider.System.Linq.IQueryProvider.Execute(Expression expression)
at System.Linq.Queryable.FirstOrDefault(IQueryable1 source, Expression
1 predicate)
Does anyone have any idea why this may be occurring even for the most basic queries?