Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Can't create component 'User.UserManager' #2475


User avatar
0
hussein created

Hi,

After updating ABP to latest version i'm getting this error after running the application

"Can't create component 'HelpCenter.User.UserManager' as it has dependencies to be satisfied.\r\n\r\n'HelpCenter.User.UserManager' is waiting for the following dependencies:\r\n- Service 'HelpCenter.Authorization.RoleManager' which was registered but is also waiting for dependencies.\r\n'HelpCenter.Authorization.RoleManager' is waiting for the following dependencies:\r\n- Service 'Abp.Zero.Configuration.IRoleManagementConfig' which was not registered.\r\n- Service 'Abp.Organizations.IOrganizationUnitSettings' which was not registered.\r\n- Service 'Abp.IdentityFramework.IdentityEmailMessageService' which was not registered.\r\n- Service 'Abp.Authorization.Users.IUserTokenProviderAccessor' which was not registered.\r\n"

and that's my UserManager class constructor

public UserManager( UserStore store, RoleManager roleManager, IPermissionManager permissionManager, IUnitOfWorkManager unitOfWorkManager, ISettingManager settingManager, ICacheManager cacheManager, IRepository<OrganizationUnit, long> organizationUnitRepository, IRepository<UserOrganizationUnit, long> userOrganizationUnitRepository, IOrganizationUnitSettings organizationUnitSettings, ILocalizationManager localizationManager, IdentityEmailMessageService emailService, IUserTokenProviderAccessor userTokenProviderAccessor, IRepository<User, long> userRepository, IEmailManager emailManager, IRepository<UserPermissionSetting, long> userPermissionRepository, IRepository<Tenant> tenantRepository, IRepository<ForgotPassword, long> forgotPasswordRepository, IEventBus eventBus

     )
     : base(
         store,
         roleManager,
         permissionManager,
         unitOfWorkManager,
         cacheManager,
         organizationUnitRepository,
         userOrganizationUnitRepository,
         organizationUnitSettings,
         localizationManager,
         emailService,
         settingManager,
         userTokenProviderAccessor
           )
    {
        _userRepository = userRepository;
        _userPermissionRepository = userPermissionRepository;
        _unitOfWorkManager = unitOfWorkManager;
        _tenantRepository = tenantRepository;
        _forgotPasswordRepository = forgotPasswordRepository;
        EventBus = eventBus;
    }

1 Answer(s)
  • User Avatar
    0
    hussein created

    I fixed by changing

    [DependsOn(typeof(AbpEntityFrameworkModule))] to [DependsOn(typeof(AbpZeroEntityFrameworkModule))]