Exception in System.Data.SqlClient.DefaultPoolControl.ObtainSidInfo

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
 
P

Pablo Castro [MS]

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)
 
G

Guest

I'm still having trouble with this issue. Any additional help would be greatly appreciated.
 
S

sloan

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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top