Skip to content

Conversation

@maliming
Copy link
Member

Before:

[14:03:19 WRN] DependencyResolutionException has been thrown. The operation will be tried 1 times more. Exception:
An exception was thrown while activating MyCompanyName.MyProjectName.Web.MyProgram.. Stack Trace:
   at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext context)
   at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext context)
   at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action`1 next)

Now:

[14:03:19 WRN] DependencyResolutionException has been thrown. The operation will be tried 1 times more.
Autofac.Core.DependencyResolutionException: An exception was thrown while activating MyCompanyName.MyProjectName.Web.MyProgram.
 ---> Autofac.Core.DependencyResolutionException: None of the constructors found on type 'MyCompanyName.MyProjectName.Web.MyProgram' can be invoked with the available services and parameters:
Cannot resolve parameter 'MyCompanyName.MyProjectName.Web.MyProgramD myProgramD' of constructor 'Void .ctor(MyCompanyName.MyProjectName.Web.MyProgramD)'.

See https://autofac.rtfd.io/help/no-constructors-bindable for more info.
   at Autofac.Core.Activators.Reflection.ReflectionActivator.<>c__DisplayClass14_0.<UseSingleConstructorActivation>b__0(ResolveRequestContext context, Action`1 next)
   at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext context)
   at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next)

@maliming maliming added this to the 9.0-patch milestone Dec 12, 2024
@maliming maliming requested a review from EngincanV December 12, 2024 06:06
@EngincanV EngincanV merged commit b674ff2 into rel-9.0 Dec 12, 2024
3 checks passed
@EngincanV EngincanV deleted the EfCoreRuntimeDatabaseMigratorBase branch December 12, 2024 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants