services.Configure<IAuthenticationConfig>(c => AuthenticationConfig.Create(Configuration.GetSection("authorisation").ToString()));
services.AddSingleton<IAuthenticationProcessor, AuthenticationProcessor>();
An error occurred while starting the application. AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: RAPP.Authentication.OpenID.IAuthenticationProcessor Lifetime: Singleton ImplementationType: RAPP.Authentication.OpenID.AuthenticationProcessor': Unable to resolve service for type 'RAPP.Authentication.OpenID.Managers.IAuthenticationManagerFactory' while attempting to activate 'RAPP.Authentication.OpenID.AuthenticationProcessor'.) Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(IEnumerable<ServiceDescriptor> serviceDescriptors, ServiceProviderOptions options) InvalidOperationException: Error while validating the service descriptor 'ServiceType: RAPP.Authentication.OpenID.IAuthenticationProcessor Lifetime: Singleton ImplementationType: RAPP.Authentication.OpenID.AuthenticationProcessor': Unable to resolve service for type 'RAPP.Authentication.OpenID.Managers.IAuthenticationManagerFactory' while attempting to activate 'RAPP.Authentication.OpenID.AuthenticationProcessor'. Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.ValidateService(ServiceDescriptor descriptor) AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: RAPP.Authentication.OpenID.IAuthenticationProcessor Lifetime: Singleton ImplementationType: RAPP.Authentication.OpenID.AuthenticationProcessor': Unable to resolve service for type 'RAPP.Authentication.OpenID.Managers.IAuthenticationManagerFactory' while attempting to activate 'RAPP.Authentication.OpenID.AuthenticationProcessor'.) Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(IEnumerable<ServiceDescriptor> serviceDescriptors, ServiceProviderOptions options) Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options) Microsoft.Extensions.DependencyInjection.DefaultServiceProviderFactory.CreateServiceProvider(IServiceCollection containerBuilder) Microsoft.Extensions.Hosting.Internal.ServiceFactoryAdapter<TContainerBuilder>.CreateServiceProvider(object containerBuilder) Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider() Microsoft.Extensions.Hosting.HostBuilder.Build() Gas_Gateway.Program.Main(string[] args) in Program.cs + namespace Gas_Gateway { public class Program { public static void Main(string[] args) { CreateHostBuilder(args).Build().Run(); } public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => {
IAuthenticationManagerFactory
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)