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,443 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
401 - Error 6 25
javascript call 6 36
Replacing HTML tags in Textarea/Textbox 5 29
ASP.net VB.net Email  a webpage 3 26
Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
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…

759 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

23 Experts available now in Live!

Get 1:1 Help Now