打开 关闭

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


User avatar
0
a3x 创建
  • 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 答案
  • User Avatar
    0
    maliming 创建
    支持团队 Fullstack Developer

    hi

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

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11