xuzhg / MyAspNetCore

Study ASP.NET Core, Share materials, points, views

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incompatability with Microsoft.AspNetCore.OData.Versioing.ApiExplorer

HuntJason opened this issue · comments

When the OData API Explorer, the following error occurs. Any assistance to resolve is appreciated.

System.AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionGroupCollectionProvider Lifetime: Singleton ImplementationType: Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescriptionGroupCollectionProvider': Could not load type 'Microsoft.AspNet.OData.Query.DefaultQuerySettings' from assembly 'Microsoft.AspNetCore.OData, Version=8.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.) (Error while validating the service descriptor 'ServiceType: Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionProvider Lifetime: Transient ImplementationType: Microsoft.AspNetCore.Mvc.ApiExplorer.ODataApiDescriptionProvider': Could not load type 'Microsoft.AspNet.OData.Query.DefaultQuerySettings' from assembly 'Microsoft.AspNetCore.OData, Version=8.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.) (Error while validating the service descriptor 'ServiceType: Swashbuckle.AspNetCore.Swagger.ISwaggerProvider Lifetime: Transient ImplementationType: Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator': Could not load type 'Microsoft.AspNet.OData.Query.DefaultQuerySettings' from assembly 'Microsoft.AspNetCore.OData, Version=8.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.) (Error while validating the service descriptor 'ServiceType: Microsoft.Extensions.ApiDescriptions.IDocumentProvider Lifetime: Singleton ImplementationType: Microsoft.Extensions.ApiDescriptions.DocumentProvider': Could not load type 'Microsoft.AspNet.OData.Query.DefaultQuerySettings' from assembly 'Microsoft.AspNetCore.OData, Version=8.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.)