Unable to resolve service for type 'Microsoft.Extensions.Logging.ILogger' while attempting to activate 'xxxxx.Controllers.xxxxController'. 构造注入时需要加入 ...
出现上图那样的情况 一般是没有在Startup类中的ConfigureServices中注入接口和实现类 注入一个就ok ...
2021-05-14 13:43 0 1417 推荐指数:
Unable to resolve service for type 'Microsoft.Extensions.Logging.ILogger' while attempting to activate 'xxxxx.Controllers.xxxxController'. 构造注入时需要加入 ...
Unable to resolve service for type 'AspNetCoreRateLimit.IProcessingStrategy' while attempting to activate 'AspNetCoreRateLimit.IpRateLimitMiddleware ...
详细错误如下 =================== System.AggregateException:“Some services are not able to be constructed (Error while validating the service descriptor ...
System.InvalidOperationException HResult=0x80131509 Message=Unable to resolve service for type ...
今天写了一个方法和接口,需要将接口通过依赖注入的方式注入到Controller里面,但是却出现了InvalidOperationException: Unable to resolve service for type ...
An unhandled exception occurred while processing the request. InvalidOperationException: Unable to resolve service for type ...
报错信息: InvalidOperationException: Unable to resolve service for type 'AutoMapper.Mapper' while attempting to activate 'BLL.Implementation.Report ...