DataIsolationSample: Exception
See original GitHub issueI have downloaded the Finbuckle.MultiTenant-release-6.0.0-dev Open the solution in VS2019, Finbuckle.MultiTenant-release-6.0.0-dev Run the project ASP.NET Core 3 DataIsolationSample:
System.AggregateException HResult=0x80131500 Message=Some services are not able to be constructed (Error while validating the service descriptor ‘ServiceType: DataIsolationSample.Data.ToDoDbContext Lifetime: Scoped ImplementationType: DataIsolationSample.Data.ToDoDbContext’: No constructor for type ‘DataIsolationSample.Data.ToDoDbContext’ can be instantiated using services from the service container and default values.) Source=Microsoft.Extensions.DependencyInjection StackTrace: at Microsoft.Extensions.DependencyInjection.ServiceProvider…ctor(IEnumerable
1 serviceDescriptors, 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 DataIsolationSample.Program.Main(String[] args) in G:\MyProjects_CrossPlatform\Multitenancy\Finbuckle.MultiTenant-release-6.0.0-dev\samples\ASP.NET Core 3\DataIsolationSample\Program.cs:line 15This exception was originally thrown at this call stack: Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(Microsoft.Extensions.DependencyInjection.ServiceLookup.ResultCache, System.Type, System.Type, Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteChain) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(Microsoft.Extensions.DependencyInjection.ServiceDescriptor, System.Type, Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteChain, int) Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(Microsoft.Extensions.DependencyInjection.ServiceDescriptor, Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteChain) Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.ValidateService(Microsoft.Extensions.DependencyInjection.ServiceDescriptor)
Inner Exception 1: InvalidOperationException: Error while validating the service descriptor ‘ServiceType: DataIsolationSample.Data.ToDoDbContext Lifetime: Scoped ImplementationType: DataIsolationSample.Data.ToDoDbContext’: No constructor for type ‘DataIsolationSample.Data.ToDoDbContext’ can be instantiated using services from the service container and default values. Inner Exception 2: InvalidOperationException: No constructor for type ‘DataIsolationSample.Data.ToDoDbContext’ can be instantiated using services from the service container and default values.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
The branch is a few commits newer than the preview1 nuget package. I will get a preview2 nuget out this weekend.
Yes, the Preview2 is better. Thanx.