Search code examples
asp.net-coreswaggerabp-framework

Swagger Unable To Create Component in ASP.NET Zero .Net 7


I am currently running an ABP solution in .Net. The solution can be built and executed without problem, but when it comes to Swagger page, I received an internal server error as such:

**HandlerException: Can't create component 'Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionProvider_e2489259-50be-454a-adec-747b2ac808ee' as it has dependencies to be satisfied.

'Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionProvider_e2489259-50be-454a-adec-747b2ac808ee' is waiting for the following dependencies:

  • Service 'Microsoft.Extensions.DependencyInjection.IServiceProviderIsService' which was not registered.**

I had checked included libraries and extensions, and already have all related items included. May I know what step I am missing?

I also clean and rebuild solution, cleared .vs, obj and bin folder, uninstall + reinstall back dependencies and extensions.


Solution

  • The problem is solved when I update the ABP Version to 8.3 Example