question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DataIsolationSample: Exception

See original GitHub issue

I 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(IEnumerable1 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.ServiceFactoryAdapter1.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 15

This 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:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AndrewTriesToCodecommented, May 6, 2020

The branch is a few commits newer than the preview1 nuget package. I will get a preview2 nuget out this weekend.

0reactions
ZedZipDevcommented, May 17, 2020

Yes, the Preview2 is better. Thanx.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The column "TenantId" does not exist · Issue #300
I use latest FB preview, EF 3.1.4 for PostgreSQL. I am not sure what is the source of the problem but i receive...
Read more >
Jackson Exceptions - Problems and Solutions
In this tutorial, we'll go over the most common Jackson Exceptions — JsonMappingException and UnrecognizedPropertyException.
Read more >
How do we interpret / act on exceptions from PIDataPipe ...
We have an application pulling data from a data pipe that we would like to have as close to 100% uptime as possible...
Read more >
Transcending API Problem Details into Localized Exceptions
In this session, I'm going to show you how you can map an external API Problem Details response into a localized exception.
Read more >
On-premise Data Gateway Exception
Pipeline.Common] Non-gateway exception encountered in activity scope: System.ServiceModel.CommunicationException: The communication object '{0}' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found