Exception in System.Data.SqlClient.DefaultPoolControl.ObtainSidInfo

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an application I have developed with ADO.NET and the SqlClient as the data transport. Intermittently i get these errors, both from the client software and from the windows service

System.InvalidOperationException: An error occurred during integrated security validation in the connection pooler. GetLastError() returned: '6'
at System.Data.SqlClient.DefaultPoolControl.ObtainSidInfo(IntPtr& SID, IntPtr& tokenStruct
at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction
at System.Data.SqlClient.SqlConnection.Open(

I havent been able to figure out why this is happening. Any assistance would be greatly appreciated

-Brooke
 
mmm, interesting, 6 is the Windows error for "invalid handle". We use a few
handles there, the thread handle, the process handle, the current thread's
security token and the current process' security token (this last only if we
fail to obtain the thread one).

I could use some extra information about your run-time environment: is your
processing running under an interactive account (i.e. you run it from the
shell logged in with your NT account)? or is it running as a service? if
it's a service, are you running it with a specific NT account, or as
"LocalSystem"? do you impersonate users before calling Open() on SqlClient?

Thanks

--
Pablo Castro
Program Manager - ADO.NET Team
Microsoft Corp.

This posting is provided "AS IS" with no warranties, and confers no rights.


Brooke Philpott said:
I have an application I have developed with ADO.NET and the SqlClient as
the data transport. Intermittently i get these errors, both from the client
software and from the windows service.
System.InvalidOperationException: An error occurred during integrated
security validation in the connection pooler. GetLastError() returned: '6'.
at System.Data.SqlClient.DefaultPoolControl.ObtainSidInfo(IntPtr& SID, IntPtr& tokenStruct)
at
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnec
tionString options, Boolean& isInTransaction)
 
I'm still having trouble with this issue. Any additional help would be greatly appreciated.
 
Since you changed the subject line of your response post (for the OP subject
line)......................no one can follow the thread.

You've essentially orphaned the thread (in most news readers).
 
Back
Top