“/”应用程序中的服务器错误。

No row with the given identifier exists[BtxCMS.Model.New#771]

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: NHibernate.ObjectNotFoundException: No row with the given identifier exists[BtxCMS.Model.New#771]

源错误:

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[ObjectNotFoundException: No row with the given identifier exists[BtxCMS.Model.New#771]]
   NHibernate.Impl.DefaultEntityNotFoundDelegate.HandleEntityNotFound(String entityName, Object id) +76
   NHibernate.Event.Default.DefaultLoadEventListener.Load(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options) +286
   NHibernate.Event.Default.DefaultLoadEventListener.OnLoad(LoadEvent event, LoadType loadType) +1052
   NHibernate.Impl.SessionImpl.FireLoad(LoadEvent event, LoadType loadType) +203
   NHibernate.Impl.SessionImpl.Load(String entityName, Object id) +206
   NHibernate.Impl.SessionImpl.Load(Type entityClass, Object id) +128
   NHibernate.Impl.SessionImpl.Load(Object id) +140
   Spring.Data.NHibernate.Generic.HibernateTemplate.Execute(IHibernateCallback`1 action, Boolean exposeNativeSession) +211

[HibernateObjectRetrievalFailureException: No row with the given identifier exists[BtxCMS.Model.New#771]]
   Spring.Data.NHibernate.Generic.HibernateTemplate.Execute(IHibernateCallback`1 action, Boolean exposeNativeSession) +467
   BtxCMS.DAO.NHibernateRepository.GetById(Object id) in H:\三套系统\Web11-24\Web12-19\Web\BtxCMS.DAO\NHibernateRepository.cs:45
   BtxCMS.BLL.Manager.NewManager.GetById(Object id) in H:\三套系统\Web11-24\Web12-19\Web\BtxCMS.BLL\Manager\NewManager.cs:263
   _dynamic_BtxCMS.BLL.Manager.NewManager.GetById(Object , Object[] ) +135
   Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint() +132
   Spring.Transaction.Interceptor.TransactionInterceptor.Invoke(IMethodInvocation invocation) +241
   CompositionAopProxy_7db72d995f6742ea9db3fa340f6d2a61.GetById(Object id) +241
   BtxCMS.Web.Controllers.NoticeController.NoticeDetail(Int32 ClassID, Int32 ID) in H:\三套系统\Web11-24\Web12-19\Web\BtxCMS.Web.Controllers\Controllers\NoticeController.cs:77
   lambda_method(Closure , ControllerBase , Object[] ) +198
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +280
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +80
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +466
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +466
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +659
   System.Web.Mvc.Controller.ExecuteCore() +146
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +60
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +25
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +36
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +431
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4110.0