Open Closed

After OpenIddict migration: The requested service 'Volo.Abp.IdentityServer.Tokens.TokenCleanupBackgroundWorker' with hangfire #3825


User avatar
0
a3x created
  • ABP Framework version: v6.0.0
  • UI type: MVC
  • DB provider: EF Core /
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:

Autofac.Core.Registration.ComponentNotRegisteredException The requested service 'Volo.Abp.IdentityServer.Tokens.TokenCleanupBackgroundWorker' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.

After upgrading to v6.0.0 and migrating to OpenIddict I receive following error. The cause seems to be clear: Since the service was removed it cannot be executed. However, what needs to be done in order to migrate the hangfire job?


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Did you remove all identity server modules and packages from your project?

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 25, 2025, 11:10