Mvc.ExceptionHandling.AbpExceptionFilter - Can't create component 'xxx' as it has dependencies to be satisfied.
'xxx' is waiting for the following dependencies:
详细信息:
Mvc.ExceptionHandling.AbpExceptionFilter - Can't create component 'xxx' as it has dependencies to be satisfied.
'xxx' is waiting for the following dependencies:
- Service 'Abp.Domain.Repositories.IRepository`2[[Patients.PatientEquipment, xxx.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.Guid, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]' which was not registered.
Castle.MicroKernel.Handlers.HandlerException: Can't create component 'xxxx.Patient.PatientDataAppService' as it has dependencies to be satisfied.
'xxx.Patient.PatientDataAppService' is waiting for the following dependencies:
- Service 'Abp.Domain.Repositories.IRepository`2[[xxx.Patients.PatientEquipment, xxx.Core, Version=1.0.0.0, Cultu
解决ABP框架依赖注入未注册问题

在ASP.NET Boilerplate(ABP)框架中,出现'Can't create component'错误通常表示存在未注册的依赖。这篇博客分析了两种导致该错误的情况:1) 构造函数中依赖注入未赋值;2) DbContext中缺少对应DbSet的定义。通过正确配置依赖注入和检查DbContext,可以解决这类问题。
最低0.47元/天 解锁文章
6048

被折叠的 条评论
为什么被折叠?



