0
BuildSessionFactory null 예외가 발생합니다.Nhibernate BuildSessionFactory null 예외
Nhibernate 3.3.3.4000, .NET 4.5, MVC 4 및;
ISessionFactory sessionFactory = new Configuration().Configure().BuildSessionFactory();
null이 예외를 얻는 중입니다. 여러 번 nuget 패키지를 설치하고 web.config를 확인했습니다. 아무것도 바뀌지 않았다.
누구든지 나를 도와 줄 수 있습니까?
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
at NHibernate.Engine.NamedSQLQueryDefinition..ctor(String query, INativeSQLQueryReturn[] queryReturns, IList`1 querySpaces, Boolean cacheable, String cacheRegion, Int32 timeout, Int32 fetchSize, FlushMode flushMode, Nullable`1 cacheMode, Boolean readOnly, String comment, IDictionary`2 parameterTypes, Boolean callable)
at NHibernate.Cfg.XmlHbmBinding.NamedSQLQueryBinder.<>c__DisplayClass1.<AddSqlQuery>b__0(IDictionary`2 param0)
at NHibernate.Cfg.Configuration.SecondPassCompile()
at NHibernate.Cfg.Configuration.BuildSessionFactory()
덕분에 이미 예외의
편집-1 스택 트레이스.
예외의 스택 추적 게시 –
답변을 답변으로 게시하고 올바르게 표시 할 수 있습니까? – Digbyswift