Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Connection Pooling Error

Reply
Thread Tools

Connection Pooling Error

 
 
shahzad
Guest
Posts: n/a
 
      04-04-2008
I am using the following Connction string in web.config in asp.net
application
<add key="ConnectionInfo" value="Data Source=MyServer; Min Pool Size=5;Max
Pool Size=100; Connect Timeout=120; Initial Catalog=TestDB;User
ID=sa;Password=******;"/>

Application is running fine but after couple of days I got the follwong
exception on login page but there is no error and all connection are closed
properly. Then I reset IIS server & site come up again after IIS reset

The Exception is

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.
at
System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection
owningConnection)
at
System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()

Plese could you help me
the server is the website is live and client is trouble

Thanks
SA


 
Reply With Quote
 
 
 
 
George Ter-Saakov
Guest
Posts: n/a
 
      04-04-2008
Close database connections.... Always..... No matter what happened....




George.


"shahzad" <> wrote in message
news:eV%...
>I am using the following Connction string in web.config in asp.net
>application
> <add key="ConnectionInfo" value="Data Source=MyServer; Min Pool Size=5;Max
> Pool Size=100; Connect Timeout=120; Initial Catalog=TestDB;User
> ID=sa;Password=******;"/>
>
> Application is running fine but after couple of days I got the follwong
> exception on login page but there is no error and all connection are
> closed properly. Then I reset IIS server & site come up again after IIS
> reset
>
> The Exception is
>
> 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.
> at
> System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection
> owningConnection)
> at
> System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection
> outerConnection, DbConnectionFactory connectionFactory)
> at System.Data.SqlClient.SqlConnection.Open()
>
> Plese could you help me
> the server is the website is live and client is trouble
>
> Thanks
> SA
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection Pooling, Dispose/Close/Using =?Utf-8?B?UGllcnNvbiBD?= ASP .Net 9 11-26-2008 02:58 PM
Connection pooling =?Utf-8?B?VmFtJHk=?= ASP .Net 1 11-24-2004 09:45 AM
Re: SqlConnection and connection pooling William \(Bill\) Vaughn ASP .Net 0 11-14-2003 07:27 PM
connection pooling error Chris Szabo ASP .Net 6 08-19-2003 07:19 PM
connection pooling Trevor Hartman ASP .Net 2 07-28-2003 07:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57