详细内容:
|
【附件,下载附件请联系客服, QQ:2041 408 252。原客服QQ:256579212变更为 2041408252 】
异常详细信息: System.Data.ConstraintException: “ZybbsEntity”的“ksid”属性不能设置为“null”值。必须将该属性设置为类型为“System.Int32”的非 null 值。
源错误:
执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[ConstraintException: “ZybbsEntity”的“ksid”属性不能设置为“null”值。必须将该属性设置为类型为“System.Int32”的非 null 值。]System.Data.Entity.Core.Common.Internal.Materialization.ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal) +96lambda_method(Closure , Shaper ) +725System.Data.Entity.Core.Common.Internal.Materialization.Shaper.HandleEntityAppendOnly(Func`2 constructEntityDelegate, EntityKey entityKey, EntitySet entitySet) +185lambda_method(Closure , Shaper ) +319System.Data.Entity.Core.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper) +181System.Data.Entity.Core.Common.Internal.Materialization.SimpleEnumerator.MoveNext() +78System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() +112System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +121System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.<GetElementFunction>b__1(IEnumerable`1 sequence) +40System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.ExecuteSingle(IEnumerable`1 query, Expression queryRoot) +60System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute(Expression expression) +113System.Data.Entity.Internal.Linq.DbQueryProvider.Execute(Expression expression) +113System.Linq.Queryable.FirstOrDefault(IQueryable`1 source) +211Data.EF.Database.FindEntity(Expression`1 condition) in F:HKWGWDataData.EFDatabase.cs:318Data.Repository.Repository.FindEntity(Expression`1 condition) in F:HKWGWDataData.RepositoryRepositoryRepository.cs:127Application.Service.CgManage.ZybbsService.GetEntity(Int32 bsid) in F:HKWGWApplicationApplication.ServiceCgManageZybbsService.cs:26Application.Service.CgManage.GkzbService.GetEntity(Int32 bsid, String gglx) in F:HKWGWApplicationApplication.ServiceCgManageGkzbService.cs:44Web.Areas.SecondWeb.Controllers.ZbxxController.Zbgg(Int32 bsid, String type) in F:HKWGWWebAreasSecondWebControllersZbxxController.cs:162lambda_method(Closure , ControllerBase , Object ) +146System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object parameters) +14System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +157System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27System.Web.Mvc.Async.<>c.<BeginInvokeSynchronousActionMethod>b__9_0(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +22System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +29System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__11_0() +50System.Web.Mvc.Async.<>c__DisplayClass11_1.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2() +228System.Web.Mvc.Async.<>c__DisplayClass7_0.<BeginInvokeActionMethodWithFilters>b__1(IAsyncResult asyncResult) +10System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34System.Web.Mvc.Async.<>c__DisplayClass3_6.<BeginInvokeAction>b__3() +35System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__5(IAsyncResult asyncResult) +100System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +11System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +45System.Web.Mvc.<>c.<BeginExecute>b__151_2(IAsyncResult asyncResult, Controller controller) +13System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +22System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +28System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9748493System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159
|