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,474 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
[X]
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
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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
This video teaches users how to migrate an existing Wordpress website to a new domain.
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…

617 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