首页 > 其他 > 详细

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

时间:2021-05-28 22:46:30      阅读:261      评论:0      收藏:0      [点我收藏+]

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 依赖注入的错

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!