HandleTrainings.SendNewsMail

// Taak Id: #661
using TrainingsDesk.Data.Jobs;

var handleTrainings = Activate<HandleTrainings>();
handleTrainings.SendNewsMail();

Parameters

CurrentCulture
"nl-NL"
CurrentUICulture
"en-US"
RecurringJobId
"ToolboxNews"
RetryCount
5
Time
1763967609

Status

24-11-2025 07:12:40 (+436ms) Failed

An exception occurred during processing of a background job.

System.Reflection.TargetInvocationException

Exception has been thrown by the target of an invocation.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The model backing the 'TrainingsDeskContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).
   at System.Data.Entity.CreateDatabaseIfNotExists`1.InitializeDatabase(TContext context)
   at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
   at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
   at System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
   at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
   at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
   at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
   at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
   at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider()
   at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)
   at TrainingsDesk.Data.Services.SettingsBase.Load(TrainingsDeskContext dbContext) in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Services\SettingsBase.cs:line 23
   at TrainingsDesk.Data.TrainingsDeskSettings.CreateSettings[T]() in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Settings.cs:line 68
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at TrainingsDesk.Data.Jobs.HandleTrainings..ctor() in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Jobs\HandleTrainings.cs:line 29
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Hangfire.JobActivator.SimpleJobActivatorScope.Resolve(Type type)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_0.<PerformJobWithFilters>b__0()
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation)
   at Hangfire.Server.BackgroundJobPerformer.PerformJobWithFilters(PerformContext context, IEnumerable`1 filters)
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId)

+ <1ms Processing

Server:
dawesta-vps:15208
Worker:
1b8b258f

+6m 44.767s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+ <1ms Scheduled

Retry attempt 5 of 5: Exception has been thrown by the target of an inv…

Enqueue at:
24-11-2025 07:12:26

+453ms Failed

An exception occurred during processing of a background job.

System.Reflection.TargetInvocationException

Exception has been thrown by the target of an invocation.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The model backing the 'TrainingsDeskContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).
   at System.Data.Entity.CreateDatabaseIfNotExists`1.InitializeDatabase(TContext context)
   at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
   at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
   at System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
   at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
   at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
   at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
   at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
   at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider()
   at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)
   at TrainingsDesk.Data.Services.SettingsBase.Load(TrainingsDeskContext dbContext) in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Services\SettingsBase.cs:line 23
   at TrainingsDesk.Data.TrainingsDeskSettings.CreateSettings[T]() in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Settings.cs:line 68
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at TrainingsDesk.Data.Jobs.HandleTrainings..ctor() in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Jobs\HandleTrainings.cs:line 29
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Hangfire.JobActivator.SimpleJobActivatorScope.Resolve(Type type)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_0.<PerformJobWithFilters>b__0()
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation)
   at Hangfire.Server.BackgroundJobPerformer.PerformJobWithFilters(PerformContext context, IEnumerable`1 filters)
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId)

+ <1ms Processing

Server:
dawesta-vps:15208
Worker:
1b8b258f

+2m 44.707s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+ <1ms Scheduled

Retry attempt 4 of 5: Exception has been thrown by the target of an inv…

Enqueue at:
24-11-2025 07:05:45

+390ms Failed

An exception occurred during processing of a background job.

System.Reflection.TargetInvocationException

Exception has been thrown by the target of an invocation.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The model backing the 'TrainingsDeskContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).
   at System.Data.Entity.CreateDatabaseIfNotExists`1.InitializeDatabase(TContext context)
   at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
   at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
   at System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
   at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
   at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
   at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
   at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
   at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider()
   at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)
   at TrainingsDesk.Data.Services.SettingsBase.Load(TrainingsDeskContext dbContext) in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Services\SettingsBase.cs:line 23
   at TrainingsDesk.Data.TrainingsDeskSettings.CreateSettings[T]() in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Settings.cs:line 68
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at TrainingsDesk.Data.Jobs.HandleTrainings..ctor() in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Jobs\HandleTrainings.cs:line 29
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Hangfire.JobActivator.SimpleJobActivatorScope.Resolve(Type type)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_0.<PerformJobWithFilters>b__0()
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation)
   at Hangfire.Server.BackgroundJobPerformer.PerformJobWithFilters(PerformContext context, IEnumerable`1 filters)
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId)

+ <1ms Processing

Server:
dawesta-vps:15208
Worker:
1b8b258f

+1m 14.610s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+ <1ms Scheduled

Retry attempt 3 of 5: Exception has been thrown by the target of an inv…

Enqueue at:
24-11-2025 07:03:01

+437ms Failed

An exception occurred during processing of a background job.

System.Reflection.TargetInvocationException

Exception has been thrown by the target of an invocation.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The model backing the 'TrainingsDeskContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).
   at System.Data.Entity.CreateDatabaseIfNotExists`1.InitializeDatabase(TContext context)
   at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
   at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
   at System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
   at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
   at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
   at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
   at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
   at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider()
   at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)
   at TrainingsDesk.Data.Services.SettingsBase.Load(TrainingsDeskContext dbContext) in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Services\SettingsBase.cs:line 23
   at TrainingsDesk.Data.TrainingsDeskSettings.CreateSettings[T]() in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Settings.cs:line 68
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at TrainingsDesk.Data.Jobs.HandleTrainings..ctor() in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Jobs\HandleTrainings.cs:line 29
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Hangfire.JobActivator.SimpleJobActivatorScope.Resolve(Type type)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_0.<PerformJobWithFilters>b__0()
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation)
   at Hangfire.Server.BackgroundJobPerformer.PerformJobWithFilters(PerformContext context, IEnumerable`1 filters)
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId)

+ <1ms Processing

Server:
dawesta-vps:15208
Worker:
1b8b258f

+59.530s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+ <1ms Scheduled

Retry attempt 2 of 5: Exception has been thrown by the target of an inv…

Enqueue at:
24-11-2025 07:01:52

+500ms Failed

An exception occurred during processing of a background job.

System.Reflection.TargetInvocationException

Exception has been thrown by the target of an invocation.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The model backing the 'TrainingsDeskContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).
   at System.Data.Entity.CreateDatabaseIfNotExists`1.InitializeDatabase(TContext context)
   at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
   at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
   at System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
   at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
   at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
   at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
   at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
   at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider()
   at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)
   at TrainingsDesk.Data.Services.SettingsBase.Load(TrainingsDeskContext dbContext) in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Services\SettingsBase.cs:line 23
   at TrainingsDesk.Data.TrainingsDeskSettings.CreateSettings[T]() in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Settings.cs:line 68
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at TrainingsDesk.Data.Jobs.HandleTrainings..ctor() in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Jobs\HandleTrainings.cs:line 29
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Hangfire.JobActivator.SimpleJobActivatorScope.Resolve(Type type)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_0.<PerformJobWithFilters>b__0()
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation)
   at Hangfire.Server.BackgroundJobPerformer.PerformJobWithFilters(PerformContext context, IEnumerable`1 filters)
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId)

+ <1ms Processing

Server:
dawesta-vps:15208
Worker:
1b8b258f

+42.190s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+13ms Scheduled

Retry attempt 1 of 5: Exception has been thrown by the target of an inv…

Enqueue at:
24-11-2025 07:00:52

+2.813s Failed

An exception occurred during processing of a background job.

System.Reflection.TargetInvocationException

Exception has been thrown by the target of an invocation.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The model backing the 'TrainingsDeskContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).
   at System.Data.Entity.CreateDatabaseIfNotExists`1.InitializeDatabase(TContext context)
   at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
   at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
   at System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
   at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
   at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
   at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
   at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
   at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider()
   at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)
   at TrainingsDesk.Data.Services.SettingsBase.Load(TrainingsDeskContext dbContext) in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Services\SettingsBase.cs:line 23
   at TrainingsDesk.Data.TrainingsDeskSettings.CreateSettings[T]() in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Settings.cs:line 68
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at TrainingsDesk.Data.Jobs.HandleTrainings..ctor() in C:\Users\jan.tamis\source\Dawesta\TrainingsDesk\202309_Versie_2000\TrainingsDesk.Data\Jobs\HandleTrainings.cs:line 29
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Hangfire.JobActivator.SimpleJobActivatorScope.Resolve(Type type)
   at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_0.<PerformJobWithFilters>b__0()
   at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation)
   at Hangfire.Server.BackgroundJobPerformer.PerformJobWithFilters(PerformContext context, IEnumerable`1 filters)
   at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context)
   at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId)

+80ms Processing

Server:
dawesta-vps:15208
Worker:
1b8b258f

+30ms Enqueued

Triggered by recurring job scheduler

Queue:
default

24-11-2025 07:00:09 Created