An exception was thrown while activating Castle.Proxies.PersonAppServiceProxy. ABP Netcore

2019-11-27 15:04:54.203 +08:00 [ERR] {
"code": null,
"message": "对不起,在处理你的请求期间,产生了一个服务器内部错误!",
"details": null,
"validationErrors": null
}
2019-11-27 15:04:54.203 +08:00 [ERR] An exception was thrown while activating Castle.Proxies.PersonAppServiceProxy.
Autofac.Core.DependencyResolutionException: An exception was thrown while activating Castle.Proxies.PersonAppServiceProxy.
---> Autofac.Core.DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Castle.Proxies.PersonAppServiceProxy' can be invoked with the available services and parameters:
Cannot resolve parameter 'Volo.Abp.Domain.Repositories.IRepository`1[Test.Person] personRepository' of constructor 'Void .ctor(Castle.DynamicProxy.IInterceptor[], Volo.Abp.Domain.Repositories.IRepository`1[Test.Person])'.
at Autofac.Core.Activators.Reflection.ReflectionActivator.GetValidConstructorBindings(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget)
--- End of inner exception stack trace ---

上面错误日志 

没有做数据库映射

 

 

posted @ 2019-11-27 15:22  上帝视角  阅读(4964)  评论(1编辑  收藏  举报