Server Error in '/' Application.

万博体育投注

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: NHibernate.ObjectNotFoundException: 万博体育投注

Source Error:


Line 17:         if (cid == StringUtil.DefaultValue)
Line 18:             cid = 49;
Line 19:         model = BLL.BllBase<Model.T_Category>.GetId(cid);
Line 20:         if (model.ParentID != 0)
Line 21:             p_model = BLL.BllBase<Model.T_Category>.GetId(model.ParentID);

Source File: d:\1\v0062780\wwwroot\List.aspx.cs    Line: 19

Stack Trace:


[ObjectNotFoundException: 万博体育投注]
   NHibernate.Impl.DefaultEntityNotFoundDelegate.HandleEntityNotFound(String entityName, Object id) +37
   NHibernate.Event.Default.DefaultLoadEventListener.Load(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options) +208
   NHibernate.Event.Default.DefaultLoadEventListener.ProxyOrLoad(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options) +135
   NHibernate.Event.Default.DefaultLoadEventListener.OnLoad(LoadEvent event, LoadType loadType) +428
   NHibernate.Impl.SessionImpl.FireLoad(LoadEvent event, LoadType loadType) +197
   NHibernate.Impl.SessionImpl.Load(String entityName, Object id) +242
   NHibernate.Impl.SessionImpl.Load(Type entityClass, Object id) +175
   Castle.ActiveRecord.ActiveRecordBase.FindByPrimaryKey(Type targetType, Object id, Boolean throwOnNotFound) in c:\TeamCity\buildAgent\work\e41ee5ead2eba140\src\Castle.ActiveRecord\Framework\ActiveRecordBase.cs:1181

[NotFoundException: Could not find T_Category with id 0]
   Castle.ActiveRecord.ActiveRecordBase.FindByPrimaryKey(Type targetType, Object id, Boolean throwOnNotFound) in c:\TeamCity\buildAgent\work\e41ee5ead2eba140\src\Castle.ActiveRecord\Framework\ActiveRecordBase.cs:1202
   Castle.ActiveRecord.ActiveRecordBase`1.Find(Object id) in c:\TeamCity\buildAgent\work\e41ee5ead2eba140\src\Castle.ActiveRecord\Framework\ActiveRecordBase.Generic.cs:440
   DAL.DalHelper`1.ext_GetId(Int32 id) in E:\项目\PX12580\DAL\DalHelper.cs:46
   BLL.BllBase`1.GetId(Int32 id) in E:\项目\PX12580\BLL\BllBase.cs:30
   List.Page_Load(Object sender, EventArgs e) in d:\1\v0062780\wwwroot\List.aspx.cs:19
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1040