码迷,mamicode.com
首页 > 其他好文 > 详细

abp 报Autofac.Core.DependencyResolutionException 依赖注入的错

时间:2021-06-02 14:54:19      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:gui   worker   can   core   dynamic   enc   类型   generator   main   

An exception was thrown while activating Castle.Proxies.ProcedureAppServiceProxy.
Autofac.Core.DependencyResolutionException: An exception was thrown while activating Castle.Proxies.ProcedureAppServiceProxy.
---> Autofac.Core.DependencyResolutionException: None of the constructors found with ‘Autofac.Core.Activators.Reflection.DefaultConstructorFinder‘ on type ‘Castle.Proxies.ProcedureAppServiceProxy‘ can be invoked with the available services and parameters:
Cannot resolve parameter ‘Volo.Abp.Domain.Repositories.IRepository`2[SnAbp.ConstructionBase.Entities.ProcedureRltFile,System.Guid] procedureRltFileRepo‘ of constructor ‘Void .ctor(Castle.DynamicProxy.IInterceptor[], Volo.Abp.Domain.Repositories.IRepository`2[SnAbp.ConstructionBase.Entities.Procedure,System.Guid], Volo.Abp.Domain.Repositories.IRepository`2[SnAbp.ConstructionBase.Entities.ProcedureMaterial,System.Guid], Volo.Abp.Domain.Repositories.IRepository`2[SnAbp.ConstructionBase.Entities.ProcedureWorker,System.Guid], Volo.Abp.Domain.Repositories.IRepository`2[SnAbp.ConstructionBase.Entities.ProcedureEquipmentTeam,System.Guid], Volo.Abp.Domain.Repositories.IRepository`2[SnAbp.ConstructionBase.Entities.ProcedureRltFile,System.Guid], Volo.Abp.Guids.IGuidGenerator, Volo.Abp.Domain.Repositories.IRepository`2[SnAbp.Identity.DataDictionary,System.Guid])‘.

Autofac.Core.DependencyResolutionException:激活Castle.Proxies.ProcedureAppServiceProxy时引发了异常。
---> Autofac.Core.DependencyResolutionException:不能使用可用服务和参数调用类型为‘Castle.Proxies.ProcedureAppServiceProxy‘的‘Autofac.Core.Activators.Reflection.DefaultConstructorFinder‘发现的构造函数:
无法解析构造函数‘Void .ctor(Castle.DynamicProxy.IInterceptor [],Volo.Abp.Domain的构造函

 

说某个仓储  IRepository 没有 构造函数 参数  

 

这个时候 检查下 IDbContext 和 DbContext  ,把 对应 缺失 的 dbSet  补上就可以了 

 

abp 报Autofac.Core.DependencyResolutionException 依赖注入的错

标签:gui   worker   can   core   dynamic   enc   类型   generator   main   

原文地址:https://www.cnblogs.com/ifnk/p/14823772.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!