Anybody can help explaining this to me?
I have created a very simple .NET console application connecting to two different databases located on a same server. The code looks like.
SqlConnection conn = new SqlConnection();
conn.ConnectionString = @”server=(local);Integrated Security=SSPI;database=db1”;
conn.Open();
SqlConnection conn2 = new SqlConnection();
Conn2.ConnectionString = @”server=(local);Integrated Security=SSPI;database=db2”;
Conn2.Open();
conn.Close();
Conn2.Close();
Very frequently I get:
Assertion Failed!
Program: ....\DBConnCobsole.exe
File: ..\..\nt\ssock\src\ntssockc.c
Line: 957
Expression: 0 == pConnectionObject->fCallCheck
For Information on how your program can cause an assertion failure,
please see the VC++ Documentation.
(Press Retry to Debug the Application - JIT Must be enabled)
If the first connection is closed before opening the second one, the error never appears.
If the connection pooling is explicitly disabled on connection level using a string like “Pooling=false;server=(local);Integrated Security=SSPI;database=db1” and the same for the second connection, the error never appears.
Any thoughts?
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.