| | |
Time Expired, pool is full
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2008
Posts: 9
Reputation:
Solved Threads: 0
Hello dears,
I m facing below mentioned Error in my application.
where as all my database connections are closed.
my code is as under:
i have made a function that is being used with each type of query in my application.
'Execute Insert, Update and Delete Queries
but when 3 or 4 person use this at the same time it gives the error.
Please suggest me most convenient way at earliest.
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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Best Regards,
Naveed
I m facing below mentioned Error in my application.
where as all my database connections are closed.
my code is as under:
i have made a function that is being used with each type of query in my application.
VB.NET Syntax (Toggle Plain Text)
Public Function exeQuery(ByVal query As String) As String Dim msg As String Try connect() fComm = New SqlCommand(query, fConn) fComm.ExecuteNonQuery() fConn.Close() fConn.Dispose() Return "1" Catch ex As Exception fConn.Close() msg = ex.Message.ToString() Return msg Finally fConn.Close() End Try End Function
but when 3 or 4 person use this at the same time it gives the error.
Please suggest me most convenient way at earliest.
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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
ASP.NET Syntax (Toggle Plain Text)
Exception Details: System.InvalidOperationException: 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.
Best Regards,
Naveed
Last edited by peter_budo; May 31st, 2008 at 8:11 am. Reason: Keep It Organized - please use [code] tags
Needo
In your connection string to the database add Pooling=False;
I caution you, however, there is something "seriously concerning" if you are exceeding 100 connections to your db at the same time. make sure you are closing out your connections! do you have background threads using the db????
I caution you, however, there is something "seriously concerning" if you are exceeding 100 connections to your db at the same time. make sure you are closing out your connections! do you have background threads using the db????
--
"Dummy."
"Dummy."
![]() |
Other Threads in the ASP.NET Forum
- Previous Thread: problem with web.config
- Next Thread: pop up menu in asp.net 2005 with c# like yahoomail
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances asp asp.net beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions compatible content contenttype control countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv formview gridview gudi iis javascript list listbox login menu microsoft mouse mssql nameisnotdeclared news novell numerical opera order panelmasterpagebuttoncontrols problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security serializesmo.table sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl tracking treeview validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming webservice wizard xsl





