We are getting below error with inetgrated security and custom DB sql server connection in sharepoint 2013.
This connectionstring works in dev with SQL username and password but in QA we are changing it to integrated authority.
<add name="OurConnectionString" connectionString="Data Source=OurDB;Initial Catalog=Catalogname;Integrated Security=SSPI" providerName="System.Data.SqlClient"> (This does not work in QA)<add name="OurConnectionString" connectionString="Data Source=OurDB;Initial Catalog=Catalogname;User ID=user1;Password=ourpwd" providerName="System.Data.SqlClient" /> (This works in dev)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) 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.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) at System.Data.SqlClient.S...c62c629c-6890-d0e5-d8a0-91d367f84202
12/20/2013 10:29:31.55*w3wp.exe (0x2434) 0x1EC0
Unknown 00000Unexpected...qlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnecti...c62c629c-6890-d0e5-d8a0-91d367f84202
12/20/2013 10:29:31.55*w3wp.exe (0x2434) 0x1EC0
Unknown 00000Unexpected...onString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions) at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions
options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool
pool, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbCon...c62c629c-6890-d0e5-d8a0-91d367f84202
12/20/2013 10:29:31.55*w3wp.exe (0x2434) 0x1EC0
Unknown 00000Unexpected...nectionOptions userOptions) 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`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFacto...c62c629c-6890-d0e5-d8a0-91d367f84202
12/20/2013 10:29:31.55*w3wp.exe (0x2434) 0x1EC0
Unknown 00000Unexpected...ry, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlConnection.Open() at DBManager.ConnectionOpen()c62c629c-6890-d0e5-d8a0-91d367f84202
12/20/2013 10:29:31.74 w3wp.exe (0x2434) 0x1EC0
SharePoint Foundation Claims Authentication aebggHigh
MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead