G
Guest
Good day, all,
I have a SingleCall remoting service that spins off an asynchronous call
using BeginInvoke. The call/thread accesses the database, queues a message
and returns. It works fine. After 3 minutes, I get an exception. Here is the
stack trace:
mscorlib.dll!System.Collections.ArrayList::get_Item(__int32 index = 2) +
0x51 bytes
system.data.dll!System.Data.SqlClient.ConnectionPool::CheckForDeadConnections() + 0xae bytes
system.data.dll!System.Data.SqlClient.ConnectionPool:oolCreateRequest(System.Object state = null) + 0x5b bytes
Note that the get_Item call happens on a different thread than the other two
calls on the stack. The other two occur on the thread launched by BeginInvoke.
Here is my connection string:
Data Source=192.168.20.51;Initial Catalog=TEST;Uid=TestUser;Persist Security
Info=true;pwd=test;Pooling=True;Min Pool Size=1;Max Pool Size=50;Connection
Lifetime=5;Connection Reset=False;Enlist=True
Has anybody encountered this problem? I'm thinking that I may be able to
remedy the problem by changing the pooling config, but I'd like to know what
is happening here.
Thanks for any help,
Mike
I have a SingleCall remoting service that spins off an asynchronous call
using BeginInvoke. The call/thread accesses the database, queues a message
and returns. It works fine. After 3 minutes, I get an exception. Here is the
stack trace:
mscorlib.dll!System.Collections.ArrayList::get_Item(__int32 index = 2) +
0x51 bytes
system.data.dll!System.Data.SqlClient.ConnectionPool::CheckForDeadConnections() + 0xae bytes
system.data.dll!System.Data.SqlClient.ConnectionPool:oolCreateRequest(System.Object state = null) + 0x5b bytes
Note that the get_Item call happens on a different thread than the other two
calls on the stack. The other two occur on the thread launched by BeginInvoke.
Here is my connection string:
Data Source=192.168.20.51;Initial Catalog=TEST;Uid=TestUser;Persist Security
Info=true;pwd=test;Pooling=True;Min Pool Size=1;Max Pool Size=50;Connection
Lifetime=5;Connection Reset=False;Enlist=True
Has anybody encountered this problem? I'm thinking that I may be able to
remedy the problem by changing the pooling config, but I'd like to know what
is happening here.
Thanks for any help,
Mike