Click here to Skip to main content
15,908,581 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created dll in .net using C# (backend Oracle)

this dll contains connection a number of connection strings .

the back end is oracle through which i fetch the data remotely

After some time i get exceptions saying
"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 have checked for leaked connections , used the finally block to close and dispose a connecion but the issue is still persisting.

I have added al the necessary attributes in the connection string .

Please Help , as i am not able to find the root cause.!!!!

1 solution

Are you using ODP.Net? If yes, then make sure you dispose every single object, even the parameters separately.

Check if you are closing and then disposing connection. It is also possible that some other application running on the same computer has not closed the connections. Try increasing time out if it helps.
Share this answer
biipinpatil 13-Aug-10 3:24am    
not using
and yes connections are closed first and then disposed

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900