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”;
SqlConnection conn2 = new SqlConnection();
Conn2.ConnectionString = @”server=(local);Integrated Security=SSPI;database=db2”;
Very frequently I get:
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.