System.InvalidOperationException Timeout expired.

D

dan

The following exception has been thrown by a VB.NET program:

"System.InvalidOperationException Timeout expired. The timeout period
elapsed prior to obtaining a connection from the pool. This may have
occurred because all pooled connections were in use and max pool size was
reached".

I couldn't find the troubleshooting information in HELP.

Who could give me a hint?
Thanks,
Dan
 
M

Marina

Sounds like you are not closing your connections after you use them, and
there is a connection leak.
 
C

Cor Ligthert

Dan,

A lot options, the standard answer you will get in the ADONET newsgroup is
if you dispose your connections everytime you do not need anymore. Keeping
the connection open is bad use in Adonet.

"Dispose" in this case as one as the exceptions because that is as far as I
understand used in Net 1.x to do some handling related to pooling.

When this is not the problem, that newsgroup is
microsoft.public.dotnet.framework.adonet
by the way,

I hope this helps?

Cor
 
D

dan

You were right. Thank you very much Cor! Dan



Cor Ligthert said:
Dan,

A lot options, the standard answer you will get in the ADONET newsgroup is
if you dispose your connections everytime you do not need anymore. Keeping
the connection open is bad use in Adonet.

"Dispose" in this case as one as the exceptions because that is as far as I
understand used in Net 1.x to do some handling related to pooling.

When this is not the problem, that newsgroup is
microsoft.public.dotnet.framework.adonet
by the way,

I hope this helps?

Cor
 

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

Similar Threads

SQL Error 3
Connection pooling questions 1
Database website times out 4
Error in asp.net application 2
DataAccess Block issue 4
sql POOL Error. 1
connection status "suspended" 2
Connection pool problems 5

Top