Job

Can not find the target method.

Id
#17502

Parameters

CurrentCulture
""
CurrentUICulture
""
RecurringJobId
"BillingAddBonuses"
RetryCount
10
Time
1724814007

State

08/28/2024 07:33:53 (+14ms) Failed

An exception occurred during processing of a background job.

System.InvalidOperationException (scheduler-deployment-5d97984847-dqt9w:1)

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
   at Hangfire.AspNetCore.AspNetCoreJobActivatorScope.Resolve(Type type) in C:\projects\hangfire-525\src\Hangfire.NetCore\AspNetCore\AspNetCoreJobActivatorScope.cs:line 34
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\CoreBackgroundJobPerformer.cs:line 60
   at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass10_0.<PerformJobWithFilters>b__0() in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 121
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 140
   at Hangfire.Server.BackgroundJobPerformer.PerformJobWithFilters(PerformContext context, IEnumerable`1 filters) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 125
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 78
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId, BackgroundJob backgroundJob, IReadOnlyDictionary`2& customData) in C:\projects\hangfire-525\src\Hangfire.Core\Server\Worker.cs:line 315

+37ms Processing

Server:
scheduler-deployment-5d97984847-dqt9w:1
Worker:
c89c57d8

+1h 50m Enqueued

Triggered by DelayedJobScheduler

+1ms Scheduled

Retry attempt 10 of 10: Unable to resolve service for type 'Microsoft.Ent…

Enqueue at:
08/28/2024 07:33:49

+19ms Failed

An exception occurred during processing of a background job.

System.InvalidOperationException (scheduler-deployment-5d97984847-k8cng:1)

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\CoreBackgroundJobPerformer.cs:line 49
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 71
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId, BackgroundJob backgroundJob, IReadOnlyDictionary`2& customData) in C:\projects\hangfire-525\src\Hangfire.Core\Server\Worker.cs:line 315

+11ms Processing

Server:
scheduler-deployment-5d97984847-k8cng:1
Worker:
320cfc05

+1h 10m Enqueued

Triggered by DelayedJobScheduler

+1ms Scheduled

Retry attempt 9 of 10: Unable to resolve service for type 'Microsoft.Ent…

Enqueue at:
08/28/2024 05:43:24

+13ms Failed

An exception occurred during processing of a background job.

System.InvalidOperationException (scheduler-deployment-79b4654866-bbkrb:1)

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\CoreBackgroundJobPerformer.cs:line 49
   at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass10_0.<PerformJobWithFilters>b__0() in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 121
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 140
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 71
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId, BackgroundJob backgroundJob, IReadOnlyDictionary`2& customData) in C:\projects\hangfire-525\src\Hangfire.Core\Server\Worker.cs:line 315

+10ms Processing

Server:
scheduler-deployment-79b4654866-bbkrb:1
Worker:
2c0ed923

+43m 49.148s Enqueued

Triggered by DelayedJobScheduler

+1ms Scheduled

Retry attempt 8 of 10: Unable to resolve service for type 'Microsoft.Ent…

Enqueue at:
08/28/2024 04:32:50

+14ms Failed

An exception occurred during processing of a background job.

System.InvalidOperationException (scheduler-deployment-89879548c-nwqpm:1)

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\CoreBackgroundJobPerformer.cs:line 49
   at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass10_0.<PerformJobWithFilters>b__0() in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 121
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 140
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 71
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId, BackgroundJob backgroundJob, IReadOnlyDictionary`2& customData) in C:\projects\hangfire-525\src\Hangfire.Core\Server\Worker.cs:line 315

+10ms Processing

Server:
scheduler-deployment-89879548c-nwqpm:1
Worker:
870186f6

+23m 30.721s Enqueued

Triggered by DelayedJobScheduler

+1ms Scheduled

Retry attempt 7 of 10: Unable to resolve service for type 'Microsoft.Ent…

Enqueue at:
08/28/2024 03:49:05

+21ms Failed

An exception occurred during processing of a background job.

System.InvalidOperationException (scheduler-deployment-5d97984847-k8cng:1)

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\CoreBackgroundJobPerformer.cs:line 49
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 71
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId, BackgroundJob backgroundJob, IReadOnlyDictionary`2& customData) in C:\projects\hangfire-525\src\Hangfire.Core\Server\Worker.cs:line 315

+27ms Processing

Server:
scheduler-deployment-5d97984847-k8cng:1
Worker:
b25b6606

+13m 16.871s Enqueued

Triggered by DelayedJobScheduler

+1ms Scheduled

Retry attempt 6 of 10: Unable to resolve service for type 'Microsoft.Ent…

Enqueue at:
08/28/2024 03:25:35

+51ms Failed

An exception occurred during processing of a background job.

System.InvalidOperationException (scheduler-deployment-5b4f49fb4c-4d2k8:1)

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\CoreBackgroundJobPerformer.cs:line 49
   at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass10_0.<PerformJobWithFilters>b__0() in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 121
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 140
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 71
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId, BackgroundJob backgroundJob, IReadOnlyDictionary`2& customData) in C:\projects\hangfire-525\src\Hangfire.Core\Server\Worker.cs:line 315

+22ms Processing

Server:
scheduler-deployment-5b4f49fb4c-4d2k8:1
Worker:
7f442bef

+6m 55.814s Enqueued

Triggered by DelayedJobScheduler

+2ms Scheduled

Retry attempt 5 of 10: Unable to resolve service for type 'Microsoft.Ent…

Enqueue at:
08/28/2024 03:12:19

+16ms Failed

An exception occurred during processing of a background job.

System.InvalidOperationException (scheduler-deployment-5d97984847-k8cng:1)

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\CoreBackgroundJobPerformer.cs:line 49
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 71
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId, BackgroundJob backgroundJob, IReadOnlyDictionary`2& customData) in C:\projects\hangfire-525\src\Hangfire.Core\Server\Worker.cs:line 315

+2.510s Processing

Server:
scheduler-deployment-5d97984847-k8cng:1
Worker:
b25b6606

+2m 47.002s Enqueued

Triggered by DelayedJobScheduler

+1ms Scheduled

Retry attempt 4 of 10: Unable to resolve service for type 'Microsoft.Ent…

Enqueue at:
08/28/2024 03:05:09

+23ms Failed

An exception occurred during processing of a background job.

System.InvalidOperationException (scheduler-deployment-5d97984847-k8cng:1)

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\CoreBackgroundJobPerformer.cs:line 49
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 71
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId, BackgroundJob backgroundJob, IReadOnlyDictionary`2& customData) in C:\projects\hangfire-525\src\Hangfire.Core\Server\Worker.cs:line 315

+25ms Processing

Server:
scheduler-deployment-5d97984847-k8cng:1
Worker:
32a3cddc

+1m 46ms Enqueued

Triggered by DelayedJobScheduler

+1ms Scheduled

Retry attempt 3 of 10: Unable to resolve service for type 'Microsoft.Ent…

Enqueue at:
08/28/2024 03:02:28

+39ms Failed

An exception occurred during processing of a background job.

System.InvalidOperationException (scheduler-deployment-5d97984847-k8cng:1)

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\CoreBackgroundJobPerformer.cs:line 49
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 71
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId, BackgroundJob backgroundJob, IReadOnlyDictionary`2& customData) in C:\projects\hangfire-525\src\Hangfire.Core\Server\Worker.cs:line 315

+19ms Processing

Server:
scheduler-deployment-5d97984847-k8cng:1
Worker:
ece06e29

+1m 280ms Enqueued

Triggered by DelayedJobScheduler

+2ms Scheduled

Retry attempt 2 of 10: Unable to resolve service for type 'Microsoft.Ent…

Enqueue at:
08/28/2024 03:01:21

+45ms Failed

An exception occurred during processing of a background job.

System.InvalidOperationException (scheduler-deployment-5d97984847-k8cng:1)

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\CoreBackgroundJobPerformer.cs:line 49
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 71
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId, BackgroundJob backgroundJob, IReadOnlyDictionary`2& customData) in C:\projects\hangfire-525\src\Hangfire.Core\Server\Worker.cs:line 315

+31ms Processing

Server:
scheduler-deployment-5d97984847-k8cng:1
Worker:
2fb233b4

+25.574s Enqueued

Triggered by DelayedJobScheduler

+1ms Scheduled

Retry attempt 1 of 10: Unable to resolve service for type 'Microsoft.Ent…

Enqueue at:
08/28/2024 03:00:27

+23ms Failed

An exception occurred during processing of a background job.

System.InvalidOperationException (scheduler-deployment-5d97984847-k8cng:1)

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.IDbContextFactory`1[Red.WorkPoint.Tenants.Data.TenantsContext]' while attempting to activate 'Timetta.PeriodicJobsSender.MultiTenantPeriodicJobsService'.
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\CoreBackgroundJobPerformer.cs:line 49
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 168
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context) in C:\projects\hangfire-525\src\Hangfire.Core\Server\BackgroundJobPerformer.cs:line 71
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId, BackgroundJob backgroundJob, IReadOnlyDictionary`2& customData) in C:\projects\hangfire-525\src\Hangfire.Core\Server\Worker.cs:line 315

+35ms Processing

Server:
scheduler-deployment-5d97984847-k8cng:1
Worker:
dd58c380

+8ms Enqueued

Triggered by recurring job scheduler

08/28/2024 03:00:07 Created