'hibernate' node cannot be resolved for the specified context [Spring.Data.NHibernate.LocalSessionFactoryObject].
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。异常详细信息: Spring.Core.InvalidPropertyException: 'hibernate' node cannot be resolved for the specified context [Spring.Data.NHibernate.LocalSessionFactoryObject].源错误:执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。堆栈跟踪:[InvalidPropertyException: 'hibernate' node cannot be resolved for the specified context [Spring.Data.NHibernate.LocalSessionFactoryObject].]
   Spring.Expressions.PropertyOrFieldNode.InitializeNode(Object context) +760
   Spring.Expressions.PropertyOrFieldNode.Get(Object context, EvaluationContext evalContext) +52
   Spring.Expressions.Expression.Set(Object context, EvaluationContext evalContext, Object newValue) +127
   Spring.Expressions.BaseNode.SetValue(Object context, IDictionary variables, Object newValue) +50
   Spring.Expressions.BaseNode.Spring.Expressions.IExpression.SetValue(Object context, Object newValue) +11
   Spring.Objects.ObjectWrapper.SetPropertyValue(IExpression propertyExpression, Object val) +19
   Spring.Objects.ObjectWrapper.SetPropertyValue(PropertyValue pv) +30
   Spring.Objects.ObjectWrapper.SetPropertyValues(IPropertyValues propertyValues, Boolean ignoreUnknown) +290
   Spring.Objects.ObjectWrapper.SetPropertyValues(IPropertyValues pvs) +9
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.ApplyPropertyValues(String name, RootObjectDefinition definition, IObjectWrapper wrapper, IPropertyValues properties) +311
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.PopulateObject(String name, RootObjectDefinition definition, IObjectWrapper wrapper) +785
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.ConfigureObject(String name, RootObjectDefinition definition, IObjectWrapper wrapper) +91
   Spring.Objects.Factory.Support.WebObjectFactory.ConfigureObject(String name, RootObjectDefinition definition, IObjectWrapper wrapper) +74
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) +628[ObjectCreationException: Error creating object with name 'NHibernateSessionFactory' defined in 'assembly [App, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null], resource [App.Dao.xml]' : Initialization of object failed : 'hibernate' node cannot be resolved for the specified context [Spring.Data.NHibernate.LocalSessionFactoryObject].]
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) +787
   Spring.Objects.Factory.Support.AbstractObjectFactory.CreateAndCacheSingletonInstance(String objectName, RootObjectDefinition objectDefinition, Object[] arguments) +166
   Spring.Objects.Factory.Support.WebObjectFactory.CreateAndCacheSingletonInstance(String objectName, RootObjectDefinition objectDefinition, Object[] arguments) +231
   Spring.Objects.Factory.Support.AbstractObjectFactory.GetObjectInternal(String name, Type requiredType, Object[] arguments, Boolean suppressConfigure) +463
   Spring.Objects.Factory.Support.DefaultListableObjectFactory.PreInstantiateSingletons() +487
   Spring.Context.Support.AbstractApplicationContext.Refresh() +512
   Spring.Context.Support.WebApplicationContext..ctor(String name, Boolean caseSensitive, IApplicationContext parentContext, String[] configurationLocations) +66
   Spring.Context.Support.WebApplicationContext..ctor(String name, Boolean caseSensitive, String[] configurationLocations) +17[TargetInvocationException: 调用的目标发生了异常。]
   System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType) +0
   System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType) +15
   System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +249
   Spring.Util.ObjectUtils.InstantiateType(ConstructorInfo constructor, Object[] arguments) +229[FatalReflectionException: Cannot instantiate Type [Spring.Context.Support.WebApplicationContext] using ctor [Void .ctor(System.String, Boolean, System.String[])] : '调用的目标发生了异常。']
   Spring.Util.ObjectUtils.InstantiateType(ConstructorInfo constructor, Object[] arguments) +378
   Spring.Context.Support.RootContextInstantiator.InvokeContextConstructor(ConstructorInfo ctor) +108
   Spring.Context.Support.ContextInstantiator.InstantiateContext() +34
   Spring.Context.Support.ContextHandler.InstantiateContext(IApplicationContext parentContext, Object configContext, String contextName, Type contextType, Boolean caseSensitive, String[] resources) +106
   Spring.Context.Support.WebContextHandler.InstantiateContext(IApplicationContext parent, Object configContext, String contextName, Type contextType, Boolean caseSensitive, String[] resources) +270
   Spring.Context.Support.ContextHandler.Create(Object parent, Object configContext, XmlNode section) +266[ConfigurationErrorsException: Error creating context 'spring.root': 'hibernate' node cannot be resolved for the specified context [Spring.Data.NHibernate.LocalSessionFactoryObject].]
   Microsoft.Web.Mvc.SynchronizationContextHelper.Sync(SynchronizationContext syncContext, Func`1 func) +177
   Microsoft.Web.Mvc.AsyncResultWrapperImpl`1.ExecuteEndDelegateOnce() +293
   Microsoft.Web.Mvc.AsyncResultWrapper.UnwrapAndContinue(IAsyncResult asyncResult, Object tag) +68
   Microsoft.Web.Mvc.MvcAsyncHandler.EndProcessRequest(IAsyncResult result) +18
   Microsoft.Web.Mvc.MvcAsyncHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +7
   System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +86