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
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args)
{
return Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); })
.UseServiceContext();
}
}
Stacktrace:
Unhandled exception. System.InvalidOperationException: This service descriptor is keyed. Your service provider may not support keyed services.
at Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ThrowKeyedDescriptor()
at Microsoft.Extensions.DependencyInjection.ServiceDescriptor.get_ImplementationType()
at AspectCore.Extensions.DependencyInjection.ServiceCollectionToServiceContextExtensions.Replace(ServiceDescriptor descriptor)
at System.Linq.Enumerable.SelectIListIterator`2.MoveNext()
at System.Linq.Enumerable.TryGetLast[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
at System.Linq.Enumerable.LastOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at AspectCore.DependencyInjection.ServiceContext..ctor(IEnumerable`1 services, IAspectConfiguration aspectConfiguration)
at AspectCore.DependencyInjection.ServiceContext..ctor(IEnumerable`1 services)
at AspectCore.Extensions.DependencyInjection.ServiceCollectionToServiceContextExtensions.ToServiceContext(IServiceCollection services)
at AspectCore.Extensions.DependencyInjection.ServiceContextProviderFactory.CreateBuilder(IServiceCollection services)
at Microsoft.Extensions.Hosting.Internal.ServiceFactoryAdapter`1.CreateBuilder(IServiceCollection services)
at Microsoft.Extensions.Hosting.HostBuilder.InitializeServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at Neutral.Rfq.Api.Program.Main(String[] args) in Program.cs:line 11
The text was updated successfully, but these errors were encountered:
Code:
Stacktrace:
The text was updated successfully, but these errors were encountered: