You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use Volo.Abp.IdentityServer.MongoDB.AbpIdentityServerMongoDbModule in my web site, I got a fatal exception that is about Volo.Abp.IdentityServer.Grants.IPersistentGrantRepository can not be resolved.
But Volo.Abp.IdentityServer.EntityFrameworkCore.AbpIdentityServerEntityFrameworkCoreModule is ok.
And I've tried compare the variable "services" in ConfigureServices method, found that below info when using Volo.Abp.IdentityServer.EntityFrameworkCore.AbpIdentityServerEntityFrameworkCoreModule.
But there is nothing about ServiceType of Volo.Abp.IdentityServer.Grants.IPersistentGrantRepository when using Volo.Abp.IdentityServer.MongoDB.AbpIdentityServerMongoDbModule.
This is the detial of this Exception
Autofac.Core.DependencyResolutionException
HResult=0x80131500
Message=An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = PersistedGrantStore (ReflectionActivator), Services = [IdentityServer4.Stores.IPersistedGrantStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Volo.Abp.IdentityServer.Grants.PersistedGrantStore' can be invoked with the available services and parameters:
Cannot resolve parameter 'Volo.Abp.IdentityServer.Grants.IPersistentGrantRepository persistentGrantRepository' of constructor 'Void .ctor(Volo.Abp.IdentityServer.Grants.IPersistentGrantRepository, Volo.Abp.ObjectMapping.IObjectMapper, Volo.Abp.Guids.IGuidGenerator)'. (See inner exception for details.)
Source=Autofac
StackTrace:
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable1 parameters) at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance)
at Autofac.ResolutionExtensions.ResolveOptionalService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Microsoft.AspNetCore.Builder.IdentityServerApplicationBuilderExtensions.TestService(IServiceProvider serviceProvider, Type service, ILogger logger, String message, Boolean doThrow)
at Microsoft.AspNetCore.Builder.IdentityServerApplicationBuilderExtensions.Validate(IApplicationBuilder app)
at Microsoft.AspNetCore.Builder.IdentityServerApplicationBuilderExtensions.UseIdentityServer(IApplicationBuilder app)
at Patritech.Felinae.AuthService.Host.AuthServiceHostModule.OnApplicationInitialization(ApplicationInitializationContext context) in C:\Users\panya_jpfidw2\Source\repos\Felinae\Felinae\src\microservices\Patritech.Felinae.AuthService.Host\AuthServiceHostModule.cs:line 50
at Volo.Abp.Modularity.ModuleManager.InitializeModules(ApplicationInitializationContext context)
at Volo.Abp.AbpApplicationBase.InitializeModules()
at Patritech.Felinae.AuthService.Host.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) in C:\Users\panya_jpfidw2\Source\repos\Felinae\Felinae\src\microservices\Patritech.Felinae.AuthService.Host\Startup.cs:line 40
Inner Exception 1:
DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Volo.Abp.IdentityServer.Grants.PersistedGrantStore' can be invoked with the available services and parameters:
Cannot resolve parameter 'Volo.Abp.IdentityServer.Grants.IPersistentGrantRepository persistentGrantRepository' of constructor 'Void .ctor(Volo.Abp.IdentityServer.Grants.IPersistentGrantRepository, Volo.Abp.ObjectMapping.IObjectMapper, Volo.Abp.Guids.IGuidGenerator)'.
The text was updated successfully, but these errors were encountered:
When I use Volo.Abp.IdentityServer.MongoDB.AbpIdentityServerMongoDbModule in my web site, I got a fatal exception that is about Volo.Abp.IdentityServer.Grants.IPersistentGrantRepository can not be resolved.
But Volo.Abp.IdentityServer.EntityFrameworkCore.AbpIdentityServerEntityFrameworkCoreModule is ok.
And I've tried compare the variable "services" in ConfigureServices method, found that below info when using Volo.Abp.IdentityServer.EntityFrameworkCore.AbpIdentityServerEntityFrameworkCoreModule.
[890] Lifetime = Transient, ServiceType = {Volo.Abp.IdentityServer.Grants.IPersistentGrantRepository}, ImplementationType = {Volo.Abp.IdentityServer.Grants.PersistentGrantRepository} Microsoft.Extensions.DependencyInjection.ServiceDescriptor
But there is nothing about ServiceType of Volo.Abp.IdentityServer.Grants.IPersistentGrantRepository when using Volo.Abp.IdentityServer.MongoDB.AbpIdentityServerMongoDbModule.
This is the detial of this Exception
Autofac.Core.DependencyResolutionException
HResult=0x80131500
Message=An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = PersistedGrantStore (ReflectionActivator), Services = [IdentityServer4.Stores.IPersistedGrantStore], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Volo.Abp.IdentityServer.Grants.PersistedGrantStore' can be invoked with the available services and parameters:
Cannot resolve parameter 'Volo.Abp.IdentityServer.Grants.IPersistentGrantRepository persistentGrantRepository' of constructor 'Void .ctor(Volo.Abp.IdentityServer.Grants.IPersistentGrantRepository, Volo.Abp.ObjectMapping.IObjectMapper, Volo.Abp.Guids.IGuidGenerator)'. (See inner exception for details.)
Source=Autofac
StackTrace:
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable
1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable
1 parameters)at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable
1 parameters) at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable
1 parameters, Object& instance)at Autofac.ResolutionExtensions.ResolveOptionalService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Microsoft.AspNetCore.Builder.IdentityServerApplicationBuilderExtensions.TestService(IServiceProvider serviceProvider, Type service, ILogger logger, String message, Boolean doThrow)
at Microsoft.AspNetCore.Builder.IdentityServerApplicationBuilderExtensions.Validate(IApplicationBuilder app)
at Microsoft.AspNetCore.Builder.IdentityServerApplicationBuilderExtensions.UseIdentityServer(IApplicationBuilder app)
at Patritech.Felinae.AuthService.Host.AuthServiceHostModule.OnApplicationInitialization(ApplicationInitializationContext context) in C:\Users\panya_jpfidw2\Source\repos\Felinae\Felinae\src\microservices\Patritech.Felinae.AuthService.Host\AuthServiceHostModule.cs:line 50
at Volo.Abp.Modularity.ModuleManager.InitializeModules(ApplicationInitializationContext context)
at Volo.Abp.AbpApplicationBase.InitializeModules()
at Patritech.Felinae.AuthService.Host.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) in C:\Users\panya_jpfidw2\Source\repos\Felinae\Felinae\src\microservices\Patritech.Felinae.AuthService.Host\Startup.cs:line 40
Inner Exception 1:
DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Volo.Abp.IdentityServer.Grants.PersistedGrantStore' can be invoked with the available services and parameters:
Cannot resolve parameter 'Volo.Abp.IdentityServer.Grants.IPersistentGrantRepository persistentGrantRepository' of constructor 'Void .ctor(Volo.Abp.IdentityServer.Grants.IPersistentGrantRepository, Volo.Abp.ObjectMapping.IObjectMapper, Volo.Abp.Guids.IGuidGenerator)'.
The text was updated successfully, but these errors were encountered: