abp 报Autofac.Core.DependencyResolutionException 依赖注入的错
Posted ifnk
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了abp 报Autofac.Core.DependencyResolutionException 依赖注入的错相关的知识,希望对你有一定的参考价值。
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 依赖注入的错的主要内容,如果未能解决你的问题,请参考以下文章
Abp vnext 使用sql2005sql2008等脚本报错解决
ABP 用swagger UI测试API报401无权限访问问题
ABP vue+asp.net core yarn serve报 Cannot find module 'typescript/package.json错误