Я с миграцией с IdentityServer версии 2.5.3.0 на 3.0.0.0, и у меня есть эта ошибка. Не могли бы вы мне помочь?
Произошло необработанное исключение при обработке запроса. ArgumentException: тип реализации 'IdentityServer4.EntityFramework.DbContexts.PersistedGrantDbContext' не может быть преобразован в тип службы 'Microsoft.AspNetCore.Identity.IUserStore`1 [Microsoft.AspNetCore.Identity.IdentityUser]' Microsoft.Extensions.DerviceLenceSenseInception. ..ctor (кэш ResultCache, тип serviceType, ConstructorInfo constructorInfo, ServiceCallSite [] parameterCallSites)
Стек заголовков файлов cookie запросов ArgumentException: тип реализации 'IdentityServer4.EntityFramework.DbContexts.PersistedGrantDbContext Microsoft.AspNetCore.Identity.IUserStore`1 [Microsoft.AspNetCore.Identity.IdentityUser] .DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite (ResultCache l ifetime, Тип serviceType, Тип реализацияType, CallSiteChain (callSiteChain) CallSiteChain callSiteChain) Microsoft.Extensions.DependencyInjection.ServiceLookup. key, Fun c valueFactory) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite (Тип serviceType, CallSiteChain callSiteChain) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TypeSite, TypeSypepeSignStation, TypeStepeSecitionSpecition Type, реализацияSitepeCesteSpecte Type ,TypeSiteStepeTeciteSeciteGate ain callSiteChain, ParameterInfo [] параметры, bool throwIfCallSiteNotFound) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite (ResultCache время жизни, тип serviceType, тип реализации Тип serviceType, CallSiteChain, callSiteChain, int slot) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact (Тип serviceType, CallSiteChain callSiteChain) .ServiceLookup.CallSiteFactory + <> c__DisplayClass7_0. ViceType, CallSiteChain callSiteChain) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites (Тип serviceType, Тип реализации serviceType, тип реализация типа, CallSiteChain callSiteChain) ServiceLookup.CallSiteFactory.TryCreateExact (введите serviceType, CallSiteChain callSiteChain) Collections.Concurrent.ConcurrentDictionary.GetOrAdd (ключ TKey, Fun c valueFactory) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite (тип ServiceType, callSiteChain callSiteChain) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites (тип ServiceType, Тип creationType, CallSiteChain, callSiteChain, ParameterInfo [] параметры, bool throwIfCallSiteNotFound) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite (ResultCache время жизни, вызов типа serviceType, вызыватьSiteChainSiteContinSecisionContinSecisionContinSecisionContinSecisionChain.SecentExhainSignS). encyInjection.ServiceLookup.CallSiteFactory.TryCreateExact (дескриптор ServiceDescriptor, тип serviceType, CallSiteChain, callSiteChain, int slot). Тип serviceType, CallSiteChain callSiteChain) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory + <> c__DisplayClass7_0.b__0 (Тип тип) System.Collections.Concurrent.ConcurrentDictionary.GetOrAddience.GeOrFence_DirectoryTech .CallSiteFactory.GetCallSite (Тип serviceType, CallSiteChain callSiteChain) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites (Тип serviceType, тип реализацияType, CallSiteChain Injection. ServiceLookup.CallSiteFactory.TryCreateExact (введите serviceType, CallSiteChain callSiteChain) Collections.Concurrent.ConcurrentDictionary.GetOrAdd (ключ TKey, Fun c valueFactory) rEngine.CreateServiceAccessor (Тип serviceType) System.Collections.Concurrent.ConcurrentDictionary.GetOrAdd (ключ TKey, Fun c valueFactory) ServiceLookup.ServiceProviderEngineScope.GetService (Тип serviceType) IdentityServer4.Hosting.EndpointRouter.GetEndpointHandler (конечная точка конечной точки, контекст HttpContext) IdentityServer4.Hosting.EndpointRouter.FD , События IEventService) IdentityServer4.Hosting.IdentityServerMiddleware.Invoke (контекст HttpContext, маршрутизатор IEndpointRouter, сеанс IUserSession, события IEventService) IdentityServer4. Hosting.MutualTlsTokenEndpointMiddleware.Invoke (контекст HttpContext, схемы IAuthenticationSchemeProvider) 1006 *