Solved

ASP.net 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

Posted on 2009-07-10
3
1,448 Views
Last Modified: 2012-05-07
Hi All,

I had develop a application in asp.net with C#.
The theme of application is sending mail with Image(not an attachment).
I have a database more than 5000 emails.
When Iam running this application It's sending mails around 100 and then Iam getting Exception like this :
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.
0
Comment
Question by:mannevenu
3 Comments
 
LVL 3

Expert Comment

by:Joep_Killaars
ID: 24822087
Can you post the code ? It sounds like you open a new connection every time you retrieve an address from your database.
0
 
LVL 6

Accepted Solution

by:
badalpatel earned 500 total points
ID: 24822223
hey, please close the connection object once it is been used..
Ex. con.close()
You are not closing the connection and creating a new connection everytime in a loop. And thats reason why u r getting that error.
0
 

Author Closing Comment

by:mannevenu
ID: 31601999
Thanks Dear Patel
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction (All good things must come to an end (http://en.wikipedia.org/wiki/All_Good_Things...))The original MySQL API (http://php.net/manual/en/book.mysql.php) has gone away, deprecated by PHP in Version 5.5, and removed from PHP in all current…
A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now