HandleTrainings.SendNewsMail

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

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

Parameters

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

Status

20-10-2025 07:12:27 (+517ms) 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:13996
Worker:
87b106ff

+6m 29.876s 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:
20-10-2025 07:12:12

+374ms 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:13996
Worker:
87b106ff

+2m 14.626s 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:
20-10-2025 07:05:49

+424ms 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:13996
Worker:
87b106ff

+1m 59.703s 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:
20-10-2025 07:03:36

+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:13996
Worker:
87b106ff

+44.563s 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:
20-10-2025 07:01:32

+467ms 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:13996
Worker:
87b106ff

+41.970s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+ <1ms Scheduled

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

Enqueue at:
20-10-2025 07:00:49

+2.843s 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)

+47ms Processing

Server:
dawesta-vps:13996
Worker:
87b106ff

+33ms Enqueued

Triggered by recurring job scheduler

Queue:
default

20-10-2025 07:00:11 Created