原文:[Swagger]Unable to resolve service for type 'Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionGroupCollectionProvider' while attempting to activate

详细错误如下 System.AggregateException: Some services are not able to be constructed Error while validating the service descriptor ServiceType: Swashbuckle.AspNetCore.Swagger.ISwaggerProvider Lifetime: Tran ...

2021-04-12 18:38 0 306 推荐指数:

查看详情

Unable to resolve service for type的问题

今天写了一个方法和接口,需要将接口通过依赖注入的方式注入到Controller里面,但是却出现了InvalidOperationException: Unable to resolve service for type ...

Wed Apr 29 07:15:00 CST 2020 2 8080
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM