Failed jobs do not become expired to allow you to re-queue them without any
time pressure. You should re-queue or delete them manually, or apply AutomaticRetry(OnAttemptsExceeded = AttemptsExceededAction.Delete)
attribute to delete them automatically.
Failed to change state to a 'Failed' one due to an exception after 10 retry attempts Fewer details...
10/29/2025 13:46:22
System.ArgumentException (lw0sdlwk0006m5:1136)
Token 0x06000016 is not a valid Type token in the scope of module k�}@JNJX^� �������VJd�v��������e��)�Lk�k�k�k�k���J�. (Parameter 'metadataToken')
System.ArgumentException: Token 0x06000016 is not a valid Type token in the scope of module k�}@JNJX^� �������VJd�v��������e��)�Lk�k�k�k�k���J�. (Parameter 'metadataToken')
at System.Reflection.RuntimeModule.ResolveType(Int32metadataToken, Type[]genericTypeArguments, Type[]genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataTokencaCtorToken, MetadataImport&scope, RuntimeModuledecoratedModule, MetadataTokendecoratedToken, RuntimeTypeattributeFilterType, BooleanmustBeInheritable, ListBuilder`1&derivedAttributes, RuntimeType&attributeType, IRuntimeMethodInfo&ctorWithParameters, Boolean&isVarArg)
at System.Reflection.CustomAttribute.IsCustomAttributeDefined(RuntimeModuledecoratedModule, Int32decoratedMetadataToken, RuntimeTypeattributeFilterType, Int32attributeCtorToken, BooleanmustBeInheritable)
at System.Diagnostics.StackTrace.ToString(TraceFormattraceFormat, StringBuildersb)
at Hangfire.Common.ShallowExceptionHelper.ToStringHelper(Exceptionexception, BooleanisInner)
at Hangfire.States.FailedState.SerializeData()
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.<>c__DisplayClass23_0.<AddJobState>b__1(DbConnectionbatch)
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.AppendBatch[TKey](SortedDictionary`2collection, SqlCommandBatchbatch)
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.<>c.<Commit>b__17_0(SqlServerStoragestorage, DbConnectionconnection, DbTransactiontransaction, SqlServerWriteOnlyTransactionctx)
at Hangfire.SqlServer.SqlServerStorage.<>c__44`1.<UseTransaction>b__44_0(SqlServerStoragestorage, DbConnectionconnection, DbTransactiontransaction, KeyValuePair`2ctx)
at Hangfire.SqlServer.SqlServerStorage.<>c__45`2.<UseTransaction>b__45_0(SqlServerStoragestorage, DbConnectionconnection, KeyValuePair`2ctx)
at Hangfire.SqlServer.SqlServerStorage.UseConnection[TContext,TResult](DbConnectiondedicatedConnection, Func`4func, TContextcontext)
at Hangfire.SqlServer.SqlServerStorage.UseTransaction[TContext,TResult](DbConnectiondedicatedConnection, Func`5func, TContextcontext, Nullable`1isolationLevel)
at Hangfire.SqlServer.SqlServerStorage.UseTransaction[TContext](DbConnectiondedicatedConnection, Action`4action, TContextcontext)
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.Commit()
at Hangfire.States.BackgroundJobStateChanger.ChangeState(StateChangeContextcontext)
at Hangfire.Server.Worker.TryChangeState(BackgroundProcessContextcontext, IStorageConnectionconnection, StringjobId, IStatestate, IReadOnlyDictionary`2customData, String[]expectedStates, IFetchedJobcompleteJob, BackgroundJob&backgroundJob, CancellationTokeninitializeToken, CancellationTokenabortToken)
Failed to change state to a 'Failed' one due to an exception after 10 retry attempts More details...
10/29/2025 13:46:22
System.ArgumentException (lw0sdlwk0006m5:1136)
Token 0x06000016 is not a valid Type token in the scope of module k�}@JNJX^� �������VJd�v��������e��)�Lk�k�k�k�k���J�. (Parameter 'metadataToken')
System.ArgumentException: Token 0x06000016 is not a valid Type token in the scope of module k�}@JNJX^� �������VJd�v��������e��)�Lk�k�k�k�k���J�. (Parameter 'metadataToken')
at System.Reflection.RuntimeModule.ResolveType(Int32metadataToken, Type[]genericTypeArguments, Type[]genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataTokencaCtorToken, MetadataImport&scope, RuntimeModuledecoratedModule, MetadataTokendecoratedToken, RuntimeTypeattributeFilterType, BooleanmustBeInheritable, ListBuilder`1&derivedAttributes, RuntimeType&attributeType, IRuntimeMethodInfo&ctorWithParameters, Boolean&isVarArg)
at System.Reflection.CustomAttribute.IsCustomAttributeDefined(RuntimeModuledecoratedModule, Int32decoratedMetadataToken, RuntimeTypeattributeFilterType, Int32attributeCtorToken, BooleanmustBeInheritable)
at System.Diagnostics.StackTrace.ToString(TraceFormattraceFormat, StringBuildersb)
at Hangfire.Common.ShallowExceptionHelper.ToStringHelper(Exceptionexception, BooleanisInner)
at Hangfire.States.FailedState.SerializeData()
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.<>c__DisplayClass23_0.<AddJobState>b__1(DbConnectionbatch)
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.AppendBatch[TKey](SortedDictionary`2collection, SqlCommandBatchbatch)
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.<>c.<Commit>b__17_0(SqlServerStoragestorage, DbConnectionconnection, DbTransactiontransaction, SqlServerWriteOnlyTransactionctx)
at Hangfire.SqlServer.SqlServerStorage.<>c__44`1.<UseTransaction>b__44_0(SqlServerStoragestorage, DbConnectionconnection, DbTransactiontransaction, KeyValuePair`2ctx)
at Hangfire.SqlServer.SqlServerStorage.<>c__45`2.<UseTransaction>b__45_0(SqlServerStoragestorage, DbConnectionconnection, KeyValuePair`2ctx)
at Hangfire.SqlServer.SqlServerStorage.UseConnection[TContext,TResult](DbConnectiondedicatedConnection, Func`4func, TContextcontext)
at Hangfire.SqlServer.SqlServerStorage.UseTransaction[TContext,TResult](DbConnectiondedicatedConnection, Func`5func, TContextcontext, Nullable`1isolationLevel)
at Hangfire.SqlServer.SqlServerStorage.UseTransaction[TContext](DbConnectiondedicatedConnection, Action`4action, TContextcontext)
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.Commit()
at Hangfire.States.BackgroundJobStateChanger.ChangeState(StateChangeContextcontext)
at Hangfire.Server.Worker.TryChangeState(BackgroundProcessContextcontext, IStorageConnectionconnection, StringjobId, IStatestate, IReadOnlyDictionary`2customData, String[]expectedStates, IFetchedJobcompleteJob, BackgroundJob&backgroundJob, CancellationTokeninitializeToken, CancellationTokenabortToken)
Failed to change state to a 'Failed' one due to an exception after 10 retry attempts More details...
10/29/2025 13:46:23
System.ArgumentException (lw0sdlwk0006m5:1136)
Token 0x06000016 is not a valid Type token in the scope of module k�}@JNJX^� �������VJd�v��������e��)�Lk�k�k�k�k���J�. (Parameter 'metadataToken')
System.ArgumentException: Token 0x06000016 is not a valid Type token in the scope of module k�}@JNJX^� �������VJd�v��������e��)�Lk�k�k�k�k���J�. (Parameter 'metadataToken')
at System.Reflection.RuntimeModule.ResolveType(Int32metadataToken, Type[]genericTypeArguments, Type[]genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataTokencaCtorToken, MetadataImport&scope, RuntimeModuledecoratedModule, MetadataTokendecoratedToken, RuntimeTypeattributeFilterType, BooleanmustBeInheritable, ListBuilder`1&derivedAttributes, RuntimeType&attributeType, IRuntimeMethodInfo&ctorWithParameters, Boolean&isVarArg)
at System.Reflection.CustomAttribute.IsCustomAttributeDefined(RuntimeModuledecoratedModule, Int32decoratedMetadataToken, RuntimeTypeattributeFilterType, Int32attributeCtorToken, BooleanmustBeInheritable)
at System.Diagnostics.StackTrace.ToString(TraceFormattraceFormat, StringBuildersb)
at Hangfire.Common.ShallowExceptionHelper.ToStringHelper(Exceptionexception, BooleanisInner)
at Hangfire.States.FailedState.SerializeData()
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.<>c__DisplayClass23_0.<AddJobState>b__1(DbConnectionbatch)
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.AppendBatch[TKey](SortedDictionary`2collection, SqlCommandBatchbatch)
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.<>c.<Commit>b__17_0(SqlServerStoragestorage, DbConnectionconnection, DbTransactiontransaction, SqlServerWriteOnlyTransactionctx)
at Hangfire.SqlServer.SqlServerStorage.<>c__44`1.<UseTransaction>b__44_0(SqlServerStoragestorage, DbConnectionconnection, DbTransactiontransaction, KeyValuePair`2ctx)
at Hangfire.SqlServer.SqlServerStorage.<>c__45`2.<UseTransaction>b__45_0(SqlServerStoragestorage, DbConnectionconnection, KeyValuePair`2ctx)
at Hangfire.SqlServer.SqlServerStorage.UseConnection[TContext,TResult](DbConnectiondedicatedConnection, Func`4func, TContextcontext)
at Hangfire.SqlServer.SqlServerStorage.UseTransaction[TContext,TResult](DbConnectiondedicatedConnection, Func`5func, TContextcontext, Nullable`1isolationLevel)
at Hangfire.SqlServer.SqlServerStorage.UseTransaction[TContext](DbConnectiondedicatedConnection, Action`4action, TContextcontext)
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.Commit()
at Hangfire.States.BackgroundJobStateChanger.ChangeState(StateChangeContextcontext)
at Hangfire.Server.Worker.TryChangeState(BackgroundProcessContextcontext, IStorageConnectionconnection, StringjobId, IStatestate, IReadOnlyDictionary`2customData, String[]expectedStates, IFetchedJobcompleteJob, BackgroundJob&backgroundJob, CancellationTokeninitializeToken, CancellationTokenabortToken)
Failed to change state to a 'Failed' one due to an exception after 10 retry attempts More details...
10/29/2025 13:46:23
System.ArgumentException (lw0sdlwk0006m5:1136)
Token 0x06000016 is not a valid Type token in the scope of module k�}@JNJX^� �������VJd�v��������e��)�Lk�k�k�k�k���J�. (Parameter 'metadataToken')
System.ArgumentException: Token 0x06000016 is not a valid Type token in the scope of module k�}@JNJX^� �������VJd�v��������e��)�Lk�k�k�k�k���J�. (Parameter 'metadataToken')
at System.Reflection.RuntimeModule.ResolveType(Int32metadataToken, Type[]genericTypeArguments, Type[]genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataTokencaCtorToken, MetadataImport&scope, RuntimeModuledecoratedModule, MetadataTokendecoratedToken, RuntimeTypeattributeFilterType, BooleanmustBeInheritable, ListBuilder`1&derivedAttributes, RuntimeType&attributeType, IRuntimeMethodInfo&ctorWithParameters, Boolean&isVarArg)
at System.Reflection.CustomAttribute.IsCustomAttributeDefined(RuntimeModuledecoratedModule, Int32decoratedMetadataToken, RuntimeTypeattributeFilterType, Int32attributeCtorToken, BooleanmustBeInheritable)
at System.Diagnostics.StackTrace.ToString(TraceFormattraceFormat, StringBuildersb)
at Hangfire.Common.ShallowExceptionHelper.ToStringHelper(Exceptionexception, BooleanisInner)
at Hangfire.States.FailedState.SerializeData()
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.<>c__DisplayClass23_0.<AddJobState>b__1(DbConnectionbatch)
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.AppendBatch[TKey](SortedDictionary`2collection, SqlCommandBatchbatch)
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.<>c.<Commit>b__17_0(SqlServerStoragestorage, DbConnectionconnection, DbTransactiontransaction, SqlServerWriteOnlyTransactionctx)
at Hangfire.SqlServer.SqlServerStorage.<>c__44`1.<UseTransaction>b__44_0(SqlServerStoragestorage, DbConnectionconnection, DbTransactiontransaction, KeyValuePair`2ctx)
at Hangfire.SqlServer.SqlServerStorage.<>c__45`2.<UseTransaction>b__45_0(SqlServerStoragestorage, DbConnectionconnection, KeyValuePair`2ctx)
at Hangfire.SqlServer.SqlServerStorage.UseConnection[TContext,TResult](DbConnectiondedicatedConnection, Func`4func, TContextcontext)
at Hangfire.SqlServer.SqlServerStorage.UseTransaction[TContext,TResult](DbConnectiondedicatedConnection, Func`5func, TContextcontext, Nullable`1isolationLevel)
at Hangfire.SqlServer.SqlServerStorage.UseTransaction[TContext](DbConnectiondedicatedConnection, Action`4action, TContextcontext)
at Hangfire.SqlServer.SqlServerWriteOnlyTransaction.Commit()
at Hangfire.States.BackgroundJobStateChanger.ChangeState(StateChangeContextcontext)
at Hangfire.Server.Worker.TryChangeState(BackgroundProcessContextcontext, IStorageConnectionconnection, StringjobId, IStatestate, IReadOnlyDictionary`2customData, String[]expectedStates, IFetchedJobcompleteJob, BackgroundJob&backgroundJob, CancellationTokeninitializeToken, CancellationTokenabortToken)