locked
SqlException (0x80131904): Timeout expired RRS feed

  • Question

  • Hi All,

    We are getting below SQL exception in CRM web application. Can you please advise how to fix below error.

    The initialization of the CRM authentication pipline execution has failed for org 10.10.10.01 with a sql error: Server: CRMDB123, Exception:  System.Data.SqlClient.SqlException (0x80131904): Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.  This failure occured while attempting to connect to the Principle server. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
       at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
       at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
       at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
       at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.TdsExecuteTransactionManagerRequest(Byte[] buffer, TransactionManagerRequestType request, String transactionName, TransactionManagerIsolationLevel isoLevel, Int32 timeout, SqlInternalTransaction transaction, TdsParserStateObject stateObj, Boolean isDelegateControlRequest)
       at System.Data.SqlClient.SqlInternalConnectionTds.ExecuteTransactionYukon(TransactionRequest transactionRequest, String transactionName, IsolationLevel iso, SqlInternalTransaction internalTransaction, Boolean isDelegateControlRequest)
       at System.Data.SqlClient.SqlInternalTransaction.Commit()
       at System.Data.SqlClient.SqlTransaction.Commit()
       at Microsoft.Crm.CrmTransaction.CommitTransaction()
       at Microsoft.Crm.SqlExecutionContext.OnEndRequest()
       at Microsoft.Crm.BusinessEntities.ExecutionContext.OnEndRequest()
       at Microsoft.Crm.Caching.UserDataCacheLoader.UserAuthenticationTracking_UserAuthenticationAudited(Object sender, UserAuthenticationAuditEventArgs e)
       at Microsoft.Crm.Caching.UserAuthenticationTracking.WriteAudit(DateTime auditTime, UserAuthenticationAccessType accessType, Int32 interval)
       at Microsoft.Crm.Caching.UserAuthenticationTracking.CheckForInitialAudit(DateTime checkTime, UserAuthenticationAccessType accessType)
       at Microsoft.Crm.Caching.UserAuthenticationTracking.set_WebAccess(DateTime value)
       at Microsoft.Crm.Authentication.UserManagementFactory.UpdateAccessTime(Guid userId, UserAuthenticationAccessType accessType, DateTime accessTime, IOrganizationContext context)
       at Microsoft.Crm.Authentication.WindowsAuthenticationProviderBase.Authenticate(HttpApplication application, WindowsIdentity userIdentity)
       at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)
       at Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application)
       at Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e)
    ClientConnectionId:1e1fdd38-7260-4095-8db3-2fbef3aa4971
    Error Number:-2,State:0,Class:11.


    Tuesday, February 28, 2017 2:44 AM