Server Error in '/' Application.

There is no such an entity. Entity type: QylPrj.Entities.NewsSection, id: 0

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: Abp.Domain.Entities.EntityNotFoundException: There is no such an entity. Entity type: QylPrj.Entities.NewsSection, id: 0

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[EntityNotFoundException: There is no such an entity. Entity type: QylPrj.Entities.NewsSection, id: 0]
   Abp.Domain.Repositories.AbpRepositoryBase`2.Get(TPrimaryKey id) +144
   Castle.Proxies.Invocations.IRepository`2_Get_25.InvokeMethodOnTarget() +108
   Castle.DynamicProxy.AbstractInvocation.Proceed() +110
   Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options) +62
   Castle.DynamicProxy.AbstractInvocation.Proceed() +444
   Castle.Proxies.IRepository`2Proxy_21.Get(Int32 id) +186
   QylPrj.NewsSection.PubNewsSectionAppService.GetByIdFromDatabase(Int32 id) in E:\骞夸???寤虹?瀹??ㄥ??浼?瀹?缃?\QylPrj.Application\NewsSection\PubNewsSectionAppService.cs:87
   QylPrj.NewsSection.<>c__DisplayClass6_0.b__0() in E:\骞夸???寤虹?瀹??ㄥ??浼?瀹?缃?\QylPrj.Application\NewsSection\PubNewsSectionAppService.cs:80
   Abp.Runtime.Caching.<>c__DisplayClass3_0`2.b__0(String k) +32
   Abp.Runtime.Caching.CacheBase.Get(String key, Func`2 factory) +177
   Abp.Runtime.Caching.CacheExtensions.Get(ICache cache, TKey key, Func`2 factory) +171
   QylPrj.NewsSection.PubNewsSectionAppService.GetById(Int32 id) in E:\骞夸???寤虹?瀹??ㄥ??浼?瀹?缃?\QylPrj.Application\NewsSection\PubNewsSectionAppService.cs:78
   Castle.Proxies.Invocations.IPubNewsSectionAppService_GetById.InvokeMethodOnTarget() +95
   Castle.DynamicProxy.AbstractInvocation.Proceed() +110
   Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options) +62
   Castle.DynamicProxy.AbstractInvocation.Proceed() +444
   Abp.Auditing.AuditingInterceptor.PerformSyncAuditing(IInvocation invocation, AuditInfo auditInfo) +166
   Castle.DynamicProxy.AbstractInvocation.Proceed() +444
   Castle.DynamicProxy.AbstractInvocation.Proceed() +444
   Castle.Proxies.PubNewsSectionAppServiceProxy.GetById(Int32 id) +203
   QylPrj.Web.Controllers.WebController.Index(Nullable`1 lanmu) in E:\骞夸???寤虹?瀹??ㄥ??浼?瀹?缃?\QylPrj.Web\Controllers\WebController.cs:81
   lambda_method(Closure , ControllerBase , Object[] ) +145
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.Async.<>c.b__9_0(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +39
   System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +77
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.AsyncInvocationWithFilters.b__11_0() +72
   System.Web.Mvc.Async.<>c__DisplayClass11_1.b__2() +387
   System.Web.Mvc.Async.<>c__DisplayClass11_1.b__2() +387
   System.Web.Mvc.Async.<>c__DisplayClass11_1.b__2() +387
   System.Web.Mvc.Async.<>c__DisplayClass11_1.b__2() +387
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass3_6.b__3() +50
   System.Web.Mvc.Async.<>c__DisplayClass3_1.b__5(IAsyncResult asyncResult) +188
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +26
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +40
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +648
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +131


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