Las solicitudes de vacaciones que graban los usuarios generan el siguiente error en el "visor de procesos" al autorizarse. cabe mencionar que no posee una configuracion especial al momento de autorizar y problema persiste aun cuando reintento la ejecucion. System.Transactions.TransactionException: The operation is not valid for the state of the transaction. ---> System.TimeoutException: Transaction Timeout --- End of inner exception stack trace --- at System.Transactions.TransactionState.EnlistPromotableSinglePhase(InternalTransaction tx, IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Transaction atomicTransaction) at System.Transactions.Transaction.EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification promotableSinglePhaseNotification) at System.Data.SqlClient.SqlInternalConnection.EnlistNonNull(Transaction tx) at System.Data.ProviderBase.DbConnectionPool.PrepareConnection(DbConnection owningObject, DbConnectionInternal obj, Transaction transaction) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource |
El error se dá al realizar obtener el valor del parámetros "VacacionIncluyeSabado". En esta instrucción select no hay nada de especial. Entonces tendrías que buscar por el lado de que carga tiene el servidor SQL Server, porque finalmente él es quien tarda más de 20 segundos en realizar la instrucción select. El fuente simplemente cuando pasan los 20 segundos muestra la excepción de "Timeout". Tendrías que revisar la carga del servidor, para asegurarte que no esté sobrecargado con otros procesos y por eso deja de responder en el tiempo esperado. |