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
Is there an existing article or article request for this?
I have searched the existing resources
Describe the article you'd like
After some refactorings of an existing system I get the following exception
I assume that i missed a reference to regsiter, but the exception doesn't tell me which type the expcetion is related to.
How can I find the type which is missing a instance and which instance it is?
System.ArgumentNullException: Value cannot be null. (Parameter 'instance')
at Autofac.Core.Activators.ProvidedInstance.ProvidedInstanceActivator.GetType(Object instance)
at Autofac.Core.Activators.ProvidedInstance.ProvidedInstanceActivator..ctor(Object instance)
at Autofac.RegistrationExtensions.RegisterInstance[T](ContainerBuilder builder, T instance)
at Autofac.Extensions.DependencyInjection.AutofacRegistration.Register(ContainerBuilder builder, IEnumerable1 descriptors, Object lifetimeScopeTagForSingletons) at Autofac.Extensions.DependencyInjection.AutofacRegistration.Populate(ContainerBuilder builder, IEnumerable1 descriptors, Object lifetimeScopeTagForSingletons)
at Autofac.Extensions.DependencyInjection.AutofacRegistration.Populate(ContainerBuilder builder, IEnumerable1 descriptors) at Autofac.Extensions.DependencyInjection.AutofacServiceProviderFactory.CreateBuilder(IServiceCollection services) at Microsoft.Extensions.Hosting.Internal.ServiceFactoryAdapter1.CreateBuilder(IServiceCollection services)
at Microsoft.Extensions.Hosting.HostBuilder.InitializeServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
The text was updated successfully, but these errors were encountered:
BoasE
changed the title
Finde Missing Depency on ArgumentNullException on InitializeServiceProvider
Finding Missing Depency on ArgumentNullException on InitializeServiceProvider
Jan 21, 2025
BoasE
changed the title
Finding Missing Depency on ArgumentNullException on InitializeServiceProvider
Finding Missing Dependency on ArgumentNullException on InitializeServiceProvider
Jan 21, 2025
Is there an existing article or article request for this?
Describe the article you'd like
After some refactorings of an existing system I get the following exception
I assume that i missed a reference to regsiter, but the exception doesn't tell me which type the expcetion is related to.
How can I find the type which is missing a instance and which instance it is?
The text was updated successfully, but these errors were encountered: