Can't create component 'Inx.Membership.Authorization.LogInManager' as it has dependencies to be satisfied. throws the above error when i run my webjob
See original GitHub issueCan’t create component ‘Inx.Membership.Authorization.LogInManager’ as it has dependencies to be satisfied.
‘Inx.Membership.Authorization.LogInManager’ is waiting for the following dependencies:
- Service ‘Inx.Membership.Authorization.Users.UserManager’ which was registered but is also waiting for dependencies. ‘Inx.Membership.Authorization.Users.UserManager’ is waiting for the following dependencies:
- Service ‘Inx.Membership.Authorization.Roles.RoleManager’ which was registered but is also waiting for dependencies. ‘Inx.Membership.Authorization.Roles.RoleManager’ is waiting for the following dependencies:
- Service ‘System.Collections.Generic.IEnumerable
1[[Microsoft.AspNetCore.Identity.IRoleValidator
1[[Inx.Membership.Authorization.Roles.Role, Inx.Membership.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.Extensions.Identity.Core, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]’ which was not registered. - Service ‘Microsoft.AspNetCore.Identity.ILookupNormalizer’ which was not registered.
- Service ‘Microsoft.AspNetCore.Identity.IdentityErrorDescriber’ which was not registered.
- Service ‘Microsoft.Extensions.Logging.ILogger
1[[Abp.Authorization.Roles.AbpRoleManager
2[[Inx.Membership.Authorization.Roles.Role, Inx.Membership.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Inx.Membership.Authorization.Users.User, Inx.Membership.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Abp.ZeroCore, Version=3.8.3.0, Culture=neutral, PublicKeyToken=null]]’ which was not registered. - Service ‘Microsoft.Extensions.Options.IOptions`1[[Microsoft.AspNetCore.Identity.IdentityOptions, Microsoft.Extensions.Identity.Core, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]’ which was not registered.
- Service ‘Microsoft.AspNetCore.Identity.IPasswordHasher`1[[Inx.Membership.Authorization.Users.User, Inx.Membership.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]’ which was not registered.
- Service ‘System.Collections.Generic.IEnumerable
1[[Microsoft.AspNetCore.Identity.IUserValidator
1[[Inx.Membership.Authorization.Users.User, Inx.Membership.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.Extensions.Identity.Core, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]’ which was not registered. - Service ‘System.Collections.Generic.IEnumerable
1[[Microsoft.AspNetCore.Identity.IPasswordValidator
1[[Inx.Membership.Authorization.Users.User, Inx.Membership.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.Extensions.Identity.Core, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]’ which was not registered. - Service ‘Microsoft.AspNetCore.Identity.ILookupNormalizer’ which was not registered.
- Service ‘Microsoft.AspNetCore.Identity.IdentityErrorDescriber’ which was not registered.
- Service ‘System.IServiceProvider’ which was not registered.
- Service ‘Microsoft.Extensions.Logging.ILogger
1[[Microsoft.AspNetCore.Identity.UserManager
1[[Inx.Membership.Authorization.Users.User, Inx.Membership.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.Extensions.Identity.Core, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]’ which was not registered. - Service ‘Microsoft.AspNetCore.Identity.IPasswordHasher`1[[Inx.Membership.Authorization.Users.User, Inx.Membership.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]’ which was not registered.
- Service ‘Inx.Membership.Authorization.Roles.RoleManager’ which was registered but is also waiting for dependencies.- Service ‘Inx.Membership.Authorization.Users.UserClaimsPrincipalFactory’ which was registered but is also waiting for dependencies. ‘Inx.Membership.Authorization.Users.UserClaimsPrincipalFactory’ is waiting for the following dependencies:
- Service ‘Inx.Membership.Authorization.Users.UserManager’ which was registered but is also waiting for dependencies.- Service ‘Inx.Membership.Authorization.Roles.RoleManager’ which was registered but is also waiting for dependencies.- Service ‘Microsoft.Extensions.Options.IOptions`1[[Microsoft.AspNetCore.Identity.IdentityOptions, Microsoft.Extensions.Identity.Core, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]]’ which was not registered.
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
c# - Can't create component as it has dependencies to be ...
I am getting an error while running a test. How do I solve this? public class TestAppService : TestAppServiceBase, ITestAppService { private ...
Read more >Can't create component, A dependency cannot be satisfied ...
I'm trying to build my web application. It's a normal Mvc web application. Well i created a model named Category. here it is....
Read more >How to solve Can't create component as it has ...
How to solve Can't create component as it has dependencies to be satisfied in ASP.NET Boilerplate? Getting error while running test.
Read more >Fix for: "WebJob cannot be added from portal if deployment ...
I use Git as a deployment method so I assume that is the source control deployment they are mentioning. This is an error...
Read more >Unable to stop the continuous webJob deployed from ...
The continuous Web-Job deployed from Azure-DevOps runs successfully but on trying to stop the web-Job fails with error: Failed to stop the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
var services = new ServiceCollection(); IdentityRegistrar.Register(services); WindsorRegistrationHelper.CreateServiceProvider(IocManager.IocContainer, services);
adding this line in the preinitialize fixed the problem, the web job is a console app after all, thanks for the support @acjh
What security reasons? If it’s not reproducible, then how do we offer a solution?