Hi,
I am still investigating but it seems that something is broken in the latest release. I get an odd message in VS and the app fails to start.
Here is the exception:
System.AggregateException
HResult=0x80131500
Message=Some services are not able to be constructed
Source=Microsoft.Extensions.DependencyInjection
StackTrace:
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(IEnumerable`1 serviceDescriptors, IServiceProviderEngine engine, ServiceProviderOptions options)
at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options)
at Microsoft.Extensions.DependencyInjection.DefaultServiceProviderFactory.CreateServiceProvider(IServiceCollection containerBuilder)
at Microsoft.Extensions.Hosting.Internal.ServiceFactoryAdapter`1.CreateServiceProvider(Object containerBuilder)
at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at STracker.Program.Main(String[] args) in C:\Dev\stracker\server\Program.cs:line 18
This exception was originally thrown at this call stack:
[External Code]
Inner Exception 1:
InvalidOperationException: Error while validating the service descriptor 'ServiceType: Microsoft.AspNetCore.Identity.ISecurityStampValidator Lifetime: Scoped ImplementationType: Microsoft.AspNetCore.Identity.SecurityStampValidator`1[STracker.Models.ApplicationUser]': Unable to resolve service for type 'STracker.GlobalsService' while attempting to activate 'STracker.MultiTenancyUserStore'.
Inner Exception 2:
InvalidOperationException: Unable to resolve service for type 'STracker.GlobalsService' while attempting to activate 'STracker.MultiTenancyUserStore'.
And the message in vs: