Issue - DependencyInjection.ServiceProvider.ValidateService #53
Unanswered
nsfuntionality
asked this question in
Q&A
Replies: 1 comment
-
|
Hi @nsfuntionality, The error is because you can only create one |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting the below error, and trying to figure out the issue, I already created 1 Tenant Change Service and when i register the second tenant change service is when i get that error.
An error occurred while starting the application.
AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: AuthPermissions.AdminCode.ITenantChangeService Lifetime: Transient ImplementationType: NSLogistics.CarrierCode.EfCoreCode.CarrierTenantChangeService': Unable to resolve service for type 'NSLogistics.CarrierCode.EfCoreCode.CarrierDbContext' while attempting to activate 'NSLogistics.CarrierCode.EfCoreCode.CarrierTenantChangeService'.)
Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection serviceDescriptors, ServiceProviderOptions options)
InvalidOperationException: Error while validating the service descriptor 'ServiceType: AuthPermissions.AdminCode.ITenantChangeService Lifetime: Transient ImplementationType: NSLogistics.CarrierCode.EfCoreCode.CarrierTenantChangeService': Unable to resolve service for type 'NSLogistics.CarrierCode.EfCoreCode.CarrierDbContext' while attempting to activate 'NSLogistics.CarrierCode.EfCoreCode.CarrierTenantChangeService'.


Microsoft.Extensions.DependencyInjection.ServiceProvider.ValidateService(ServiceDescriptor descriptor
)
Beta Was this translation helpful? Give feedback.
All reactions