Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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,457 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video teaches users how to migrate an existing Wordpress website to a new domain.
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.

791 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