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.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)
Microsoft.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught) ---> System.ComponentModel.Win32Exception: The connection attempt timed out.
at Microsoft.Data.SqlClient.ManagedSni.SniTcpHandle.Connect(StringserverName, Int32port, TimeoutTimertimeout, SqlConnectionIPAddressPreferenceipPreference, StringcachedFQDN, SQLDNSInfo&pendingDNSInfo)
at Microsoft.Data.SqlClient.ManagedSni.SniTcpHandle..ctor(StringserverName, Int32port, TimeoutTimertimeout, Booleanparallel, SqlConnectionIPAddressPreferenceipPreference, StringcachedFQDN, SQLDNSInfo&pendingDNSInfo, BooleantlsFirst, StringhostNameInCertificate, StringserverCertificateFilename)
--- End of inner exception stack trace ---
at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObjectstateObj, SqlCommandcommand, BooleancallerHasConnectionLock, BooleanasyncClose)
at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfoserverInfo, SqlInternalConnectionTdsconnHandler, TimeoutTimertimeout, SqlConnectionStringconnectionOptions, BooleanwithFailover)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfoserverInfo, StringnewPassword, SecureStringnewSecurePassword, BooleanredirectedUserInstance, SqlConnectionStringconnectionOptions, SqlCredentialcredential, TimeoutTimertimeout)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimertimeout, SqlConnectionStringconnectionOptions, SqlCredentialcredential, StringnewPassword, SecureStringnewSecurePassword, BooleanredirectedUserInstance)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentityidentity, SqlConnectionStringconnectionOptions, SqlCredentialcredential, ObjectproviderInfo, StringnewPassword, SecureStringnewSecurePassword, BooleanredirectedUserInstance, SqlConnectionStringuserConnectionOptions, SessionDatareconnectSessionData, BooleanapplyTransientFaultHandling, StringaccessToken, IDbConnectionPoolpool, Func`3accessTokenCallback)
at Microsoft.Data.SqlClient.ConnectionPool.WaitHandleDbConnectionPool.CreateObject(DbConnectionowningObject, DbConnectionOptionsuserOptions, DbConnectionInternaloldConnection)
at Microsoft.Data.SqlClient.ConnectionPool.WaitHandleDbConnectionPool.UserCreateRequest(DbConnectionowningObject, DbConnectionOptionsuserOptions, DbConnectionInternaloldConnection)
at Microsoft.Data.SqlClient.ConnectionPool.WaitHandleDbConnectionPool.TryGetConnection(DbConnectionowningObject, UInt32waitForMultipleObjectsTimeout, BooleanallowCreate, BooleanonlyOneCheckConnection, DbConnectionOptionsuserOptions, DbConnectionInternal&connection)
at Microsoft.Data.SqlClient.ConnectionPool.WaitHandleDbConnectionPool.WaitForPendingOpen()
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(BooleanerrorsExpected, CancellationTokencancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(BooleanerrorsExpected, CancellationTokencancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationTokencancellationToken, BooleanerrorsExpected)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObjectparameterObject, CancellationTokencancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumeratorenumerator, CancellationTokencancellationToken)
at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TStatestate, Func`4operation, Func`4verifySucceeded, CancellationTokencancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1source, CancellationTokencancellationToken)
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1source, CancellationTokencancellationToken)
at PGMS.DataProvider.EFCore.Services.BaseOperationEntityRepository`1.GetOperationAsync[TEntity](IUnitOfWorkunitOfWork, Expression`1filter, Func`2orderBy, Int32fetchSize, Int32offset)
at PGMS.DataProvider.EFCore.Services.BaseEntityRepository`1.FindAllAsync[TEntity](Expression`1filter, Func`2orderBy)
at PGMS.DataProvider.EFCore.Services.BaseEntityRepository`1.FindAllAsync[TEntity](Expression`1filter, Func`2orderBy)
at TEQ.Core.AppCore.GameZone.Services.ActiveZoneProvider.GetActiveEfSystemZoneIdsAsync() in D:\a\1\s\src\TEQ.Core\AppCore\GameZone\Services\ActiveZoneProvider.cs:line 80
at TEQ.WorkerJobs.Jobs.BaseZoneAwareTask.ExecuteTask(PerformContextcontext, CancellationTokencancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseZoneAwareTask.cs:line 61
at TEQ.WorkerJobs.Jobs.BaseBackgroundTask.Execute(PerformContextcontext, CancellationTokencancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseBackgroundTask.cs:line 39
at InvokeStub_TaskAwaiter.GetResult(Object,Object, IntPtr*)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Objectobj, BindingFlagsinvokeAttr)
An exception occurred during performance of the job. More details...
08/19/2026 20:00:17
System.FormatException (lw0mdlwk00007e:1846)
Input string was not in a correct format. Failure to parse near offset 39. Expected an ASCII digit.
System.FormatException: Input string was not in a correct format. Failure to parse near offset 39. Expected an ASCII digit.
at System.String.FormatHelper(IFormatProviderprovider, Stringformat, ReadOnlySpan`1args)
at TEQ.WorkerJobs.Jobs.ZoneHistory.ZoneHistorySampleTask.LogError(Exceptionex, Stringmessage, Object[]args) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\ZoneHistory\ZoneHistorySampleTask.cs:line 229
at TEQ.WorkerJobs.Jobs.ZoneHistory.ZoneHistorySampleTask.ExecuteTask(PerformContextcontext, CancellationTokencancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\ZoneHistory\ZoneHistorySampleTask.cs:line 128
at TEQ.WorkerJobs.Jobs.BaseBackgroundTask.Execute(PerformContextcontext, CancellationTokencancellationToken) in D:\a\1\s\src\TEQ.WorkerJobs\Jobs\BaseBackgroundTask.cs:line 39
at InvokeStub_TaskAwaiter.GetResult(Object,Object, IntPtr*)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Objectobj, BindingFlagsinvokeAttr)
Failed to change state to a 'Failed' one due to an exception after 10 retry attempts More details...
08/19/2026 13:22:36
System.AggregateException (lw0mdlwk00007e:1844)
An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.)
System.AggregateException: An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.) ---> System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
at System.RuntimeMethodHandle.GetUtf8Name(RuntimeMethodHandleInternalmethod)
at System.Diagnostics.StackTrace.ToString(TraceFormattraceFormat, StringBuildersb)
at System.BadImageFormatException.ToString()
at Microsoft.Extensions.Logging.Console.SimpleConsoleFormatter.Write[TState](LogEntry`1&logEntry, IExternalScopeProviderscopeProvider, TextWritertextWriter)
at Microsoft.Extensions.Logging.Console.ConsoleLogger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|14_0[TState](LogLevellogLevel, EventIdeventId, ILoggerlogger, Exceptionexception, Func`3formatter, List`1&exceptions, TState&state)
--- End of inner exception stack trace ---
at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1exceptions)
at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Hangfire.AspNetCore.AspNetCoreLog.Log(LogLevellogLevel, Func`1messageFunc, Exceptionexception)
at Hangfire.Logging.LogExtensions.ErrorException(ILoglogger, Stringmessage, Exceptionexception)
at Hangfire.States.StateMachine.InvokeOnStateElection(KeyValuePair`2x)
Failed to change state to a 'Failed' one due to an exception after 10 retry attempts More details...
08/19/2026 13:22:36
System.AggregateException (lw0mdlwk00007e:1844)
An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.)
System.AggregateException: An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.) ---> System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
at System.RuntimeMethodHandle.GetUtf8Name(RuntimeMethodHandleInternalmethod)
at System.Diagnostics.StackTrace.ToString(TraceFormattraceFormat, StringBuildersb)
at System.BadImageFormatException.ToString()
at Microsoft.Extensions.Logging.Console.SimpleConsoleFormatter.Write[TState](LogEntry`1&logEntry, IExternalScopeProviderscopeProvider, TextWritertextWriter)
at Microsoft.Extensions.Logging.Console.ConsoleLogger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|14_0[TState](LogLevellogLevel, EventIdeventId, ILoggerlogger, Exceptionexception, Func`3formatter, List`1&exceptions, TState&state)
--- End of inner exception stack trace ---
at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1exceptions)
at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Hangfire.AspNetCore.AspNetCoreLog.Log(LogLevellogLevel, Func`1messageFunc, Exceptionexception)
at Hangfire.Logging.LogExtensions.ErrorException(ILoglogger, Stringmessage, Exceptionexception)
at Hangfire.States.StateMachine.InvokeOnStateElection(KeyValuePair`2x)
Failed to change state to a 'Failed' one due to an exception after 10 retry attempts More details...
08/19/2026 13:21:50
System.AggregateException (lw0mdlwk00007e:1844)
An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.)
System.AggregateException: An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.) ---> System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
at System.RuntimeMethodHandle.GetUtf8Name(RuntimeMethodHandleInternalmethod)
at System.Diagnostics.StackTrace.ToString(TraceFormattraceFormat, StringBuildersb)
at System.Exception.get_StackTrace()
at System.BadImageFormatException.ToString()
at Microsoft.Extensions.Logging.Console.SimpleConsoleFormatter.Write[TState](LogEntry`1&logEntry, IExternalScopeProviderscopeProvider, TextWritertextWriter)
at Microsoft.Extensions.Logging.Console.ConsoleLogger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|14_0[TState](LogLevellogLevel, EventIdeventId, ILoggerlogger, Exceptionexception, Func`3formatter, List`1&exceptions, TState&state)
--- End of inner exception stack trace ---
at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1exceptions)
at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Hangfire.AspNetCore.AspNetCoreLog.Log(LogLevellogLevel, Func`1messageFunc, Exceptionexception)
at Hangfire.Logging.LogExtensions.ErrorException(ILoglogger, Stringmessage, Exceptionexception)
at Hangfire.States.StateMachine.InvokeOnStateElection(KeyValuePair`2x)
Failed to change state to a 'Failed' one due to an exception after 10 retry attempts More details...
08/19/2026 13:21:50
System.AggregateException (lw0mdlwk00007e:1844)
An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.)
System.AggregateException: An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.) ---> System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
at System.RuntimeMethodHandle.GetUtf8Name(RuntimeMethodHandleInternalmethod)
at System.Diagnostics.StackTrace.ToString(TraceFormattraceFormat, StringBuildersb)
at System.Exception.get_StackTrace()
at System.BadImageFormatException.ToString()
at Microsoft.Extensions.Logging.Console.SimpleConsoleFormatter.Write[TState](LogEntry`1&logEntry, IExternalScopeProviderscopeProvider, TextWritertextWriter)
at Microsoft.Extensions.Logging.Console.ConsoleLogger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|14_0[TState](LogLevellogLevel, EventIdeventId, ILoggerlogger, Exceptionexception, Func`3formatter, List`1&exceptions, TState&state)
--- End of inner exception stack trace ---
at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1exceptions)
at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Hangfire.AspNetCore.AspNetCoreLog.Log(LogLevellogLevel, Func`1messageFunc, Exceptionexception)
at Hangfire.Logging.LogExtensions.ErrorException(ILoglogger, Stringmessage, Exceptionexception)
at Hangfire.States.StateMachine.InvokeOnStateElection(KeyValuePair`2x)
Failed to change state to a 'Failed' one due to an exception after 10 retry attempts More details...
08/19/2026 13:21:49
System.AggregateException (lw0mdlwk00007e:1844)
An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.)
System.AggregateException: An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.) ---> System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
at System.RuntimeMethodHandle.GetUtf8Name(RuntimeMethodHandleInternalmethod)
at System.Diagnostics.StackTrace.ToString(TraceFormattraceFormat, StringBuildersb)
at System.Exception.get_StackTrace()
at System.BadImageFormatException.ToString()
at Microsoft.Extensions.Logging.Console.SimpleConsoleFormatter.Write[TState](LogEntry`1&logEntry, IExternalScopeProviderscopeProvider, TextWritertextWriter)
at Microsoft.Extensions.Logging.Console.ConsoleLogger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|14_0[TState](LogLevellogLevel, EventIdeventId, ILoggerlogger, Exceptionexception, Func`3formatter, List`1&exceptions, TState&state)
--- End of inner exception stack trace ---
at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1exceptions)
at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Hangfire.AspNetCore.AspNetCoreLog.Log(LogLevellogLevel, Func`1messageFunc, Exceptionexception)
at Hangfire.Logging.LogExtensions.ErrorException(ILoglogger, Stringmessage, Exceptionexception)
at Hangfire.States.StateMachine.InvokeOnStateElection(KeyValuePair`2x)
Failed to change state to a 'Failed' one due to an exception after 10 retry attempts More details...
08/19/2026 13:21:50
System.AggregateException (lw0mdlwk00007e:1844)
An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.)
System.AggregateException: An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.) ---> System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
at System.RuntimeMethodHandle.GetUtf8Name(RuntimeMethodHandleInternalmethod)
at System.Diagnostics.StackTrace.ToString(TraceFormattraceFormat, StringBuildersb)
at System.Exception.get_StackTrace()
at System.BadImageFormatException.ToString()
at Microsoft.Extensions.Logging.Console.SimpleConsoleFormatter.Write[TState](LogEntry`1&logEntry, IExternalScopeProviderscopeProvider, TextWritertextWriter)
at Microsoft.Extensions.Logging.Console.ConsoleLogger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|14_0[TState](LogLevellogLevel, EventIdeventId, ILoggerlogger, Exceptionexception, Func`3formatter, List`1&exceptions, TState&state)
--- End of inner exception stack trace ---
at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1exceptions)
at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Hangfire.AspNetCore.AspNetCoreLog.Log(LogLevellogLevel, Func`1messageFunc, Exceptionexception)
at Hangfire.Logging.LogExtensions.ErrorException(ILoglogger, Stringmessage, Exceptionexception)
at Hangfire.States.StateMachine.InvokeOnStateElection(KeyValuePair`2x)
Failed to change state to a 'Failed' one due to an exception after 10 retry attempts More details...
08/19/2026 13:21:49
System.AggregateException (lw0mdlwk00007e:1844)
An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.)
System.AggregateException: An error occurred while writing to logger(s). (Format of the executable (.exe) or library (.dll) is invalid.) ---> System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
at System.RuntimeMethodHandle.GetUtf8Name(RuntimeMethodHandleInternalmethod)
at System.Diagnostics.StackTrace.ToString(TraceFormattraceFormat, StringBuildersb)
at System.Exception.get_StackTrace()
at System.BadImageFormatException.ToString()
at Microsoft.Extensions.Logging.Console.SimpleConsoleFormatter.Write[TState](LogEntry`1&logEntry, IExternalScopeProviderscopeProvider, TextWritertextWriter)
at Microsoft.Extensions.Logging.Console.ConsoleLogger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|14_0[TState](LogLevellogLevel, EventIdeventId, ILoggerlogger, Exceptionexception, Func`3formatter, List`1&exceptions, TState&state)
--- End of inner exception stack trace ---
at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1exceptions)
at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Hangfire.AspNetCore.AspNetCoreLog.Log(LogLevellogLevel, Func`1messageFunc, Exceptionexception)
at Hangfire.Logging.LogExtensions.ErrorException(ILoglogger, Stringmessage, Exceptionexception)
at Hangfire.States.StateMachine.InvokeOnStateElection(KeyValuePair`2x)
Failed to change state to a 'Failed' one due to an exception after 10 retry attempts More details...
08/17/2026 16:12:45
System.AggregateException (lw0mdlwk00007e:1872)
An error occurred while writing to logger(s). (Index not found. (0x80131124))
System.AggregateException: An error occurred while writing to logger(s). (Index not found. (0x80131124)) ---> System.BadImageFormatException: Index not found. (0x80131124)
at System.RuntimeTypeHandle.ConstructName(QCallTypeHandlehandle, TypeNameFormatFlagsformatFlags, StringHandleOnStackretString)
at System.RuntimeTypeHandle.ConstructName(QCallTypeHandlehandle, TypeNameFormatFlagsformatFlags, StringHandleOnStackretString)
at System.RuntimeTypeHandle.ConstructName(TypeNameFormatFlagsformatFlags)
at System.RuntimeType.RuntimeTypeCache.ConstructName(String&name, TypeNameFormatFlagsformatFlags)
at System.Diagnostics.StackTrace.ToString(TraceFormattraceFormat, StringBuildersb)
at System.Exception.get_StackTrace()
at System.BadImageFormatException.ToString()
at Microsoft.Extensions.Logging.Console.SimpleConsoleFormatter.Write[TState](LogEntry`1&logEntry, IExternalScopeProviderscopeProvider, TextWritertextWriter)
at Microsoft.Extensions.Logging.Console.ConsoleLogger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|14_0[TState](LogLevellogLevel, EventIdeventId, ILoggerlogger, Exceptionexception, Func`3formatter, List`1&exceptions, TState&state)
--- End of inner exception stack trace ---
at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1exceptions)
at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevellogLevel, EventIdeventId, TStatestate, Exceptionexception, Func`3formatter)
at Hangfire.AspNetCore.AspNetCoreLog.Log(LogLevellogLevel, Func`1messageFunc, Exceptionexception)
at Hangfire.Logging.LogExtensions.ErrorException(ILoglogger, Stringmessage, Exceptionexception)
at Hangfire.States.StateMachine.InvokeOnStateElection(KeyValuePair`2x)