Open Closed

Settings manager throws DependencyResolutionException for EmailSettingsGroupViewComponent #1578


User avatar
0
mmorrisset created
  • ABP Framework version: v4.3.2
  • UI type:MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:" SettingsManagerment page worked in 4.2. Upgraded to 4.3. Navigate to the Administration->Settings page and I get the following exception.

https://localhost:44366/SettingManagement

An unhandled exception occurred while processing the request. DependencyResolutionException: None of the constructors found with 'Volo.Abp.Autofac.AbpAutofacConstructorFinder' on type 'Volo.Abp.SettingManagement.Web.Pages.SettingManagement.Components.EmailSettingGroup.EmailSettingGroupViewComponent' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.SettingManagement.IEmailSettingsAppService emailSettingsAppService' of constructor 'Void .ctor(Volo.Abp.SettingManagement.IEmailSettingsAppService)'. Autofac.Core.Activators.Reflection.ReflectionActivator.GetAllBindings(ConstructorBinder[] availableConstructors, IComponentContext context, IEnumerable<Parameter> parameters)

DependencyResolutionException: An exception was thrown while activating Volo.Abp.SettingManagement.Web.Pages.SettingManagement.Components.EmailSettingGroup.EmailSettingGroupViewComponent. Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action<ResolveRequestContext> next)

Stack Query Cookies Headers Routing DependencyResolutionException: None of the constructors found with 'Volo.Abp.Autofac.AbpAutofacConstructorFinder' on type 'Volo.Abp.SettingManagement.Web.Pages.SettingManagement.Components.EmailSettingGroup.EmailSettingGroupViewComponent' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.SettingManagement.IEmailSettingsAppService emailSettingsAppService' of constructor 'Void .ctor(Volo.Abp.SettingManagement.IEmailSettingsAppService)'. Autofac.Core.Activators.Reflection.ReflectionActivator.GetAllBindings(ConstructorBinder[] availableConstructors, IComponentContext context, IEnumerable<Parameter> parameters) Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable<Parameter> parameters) Autofac.Core.Activators.Reflection.ReflectionActivator.<ConfigurePipeline>b__11_0(ResolveRequestContext ctxt, Action<ResolveRequestContext> next) Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action<ResolveRequestContext> next) Autofac.Builder.RegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle>+<>c__DisplayClass41_0.<PropertiesAutowired>b__0(ResolveRequestContext ctxt, Action<ResolveRequestContext> next) Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action<ResolveRequestContext> next)

Show raw exception details Autofac.Core.DependencyResolutionException: None of the constructors found with 'Volo.Abp.Autofac.AbpAutofacConstructorFinder' on type 'Volo.Abp.SettingManagement.Web.Pages.SettingManagement.Components.EmailSettingGroup.EmailSettingGroupViewComponent' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.SettingManagement.IEmailSettingsAppService emailSettingsAppService' of constructor 'Void .ctor(Volo.Abp.SettingManagement.IEmailSettingsAppService)'. at Autofac.Core.Activators.Reflection.ReflectionActivator.GetAllBindings(ConstructorBinder[] availableConstructors, IComponentContext context, IEnumerable1 parameters) at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) at Autofac.Core.Activators.Reflection.ReflectionActivator.<ConfigurePipeline>b__11_0(ResolveRequestContext ctxt, Action1 next) at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Builder.RegistrationBuilder3.<>c__DisplayClass41_0.<PropertiesAutowired>b__0(ResolveRequestContext ctxt, Action1 next) at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next) DependencyResolutionException: An exception was thrown while activating Volo.Abp.SettingManagement.Web.Pages.SettingManagement.Components.EmailSettingGroup.EmailSettingGroupViewComponent. Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action

Show raw exception details


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Try install olo.Abp.SettingManagement.Application to your application project. and:

    [DependsOn(typeof(AbpSettingManagementApplicationModule))]
    public class ...ApplicationModule : AbpModule
    
  • User Avatar
    0
    mmorrisset created

    If anyone finds this, I ran this command in the Application project folder:

    abp add-package Volo.Abp.SettingManagement.Application
    

    Then did a solution->Clean, solution->Rebuild

    Fixed - Thank you

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11