question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

Can’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.IEnumerable1[[Microsoft.AspNetCore.Identity.IRoleValidator1[[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.ILogger1[[Abp.Authorization.Roles.AbpRoleManager2[[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.IEnumerable1[[Microsoft.AspNetCore.Identity.IUserValidator1[[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.IEnumerable1[[Microsoft.AspNetCore.Identity.IPasswordValidator1[[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.ILogger1[[Microsoft.AspNetCore.Identity.UserManager1[[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:closed
  • Created 5 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
tnlthanzeelcommented, Dec 31, 2018

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

0reactions
acjhcommented, Dec 31, 2018

What security reasons? If it’s not reproducible, then how do we offer a solution?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found