473,387 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Time out issue to connect to Sql server

Hi,
I encountered this error when I debug my asp.net web application.
What might be the reason? How can I resolve this? Thanks!

Server Error in '/ETS' Application.
----------------------------------------------------------------------------
----

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.

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.

Source Error:
Line 224:
Line 225: if (conn.State != ConnectionState.Open)
Line 226: conn.Open();
Line 227:
Line 228: cmd.Connection = conn;
Source File: C:\Inetpub\wwwroot\ETS\ETS.Framework\DAL\SqlHelper .cs Line:
226

Stack Trace:
[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.]

System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec
tionString options, Boolean& isInTransaction)
System.Data.SqlClient.SqlConnection.Open()
ETS.Framework.DAL.SqlHelper.PrepareCommand(SqlComm and cmd, SqlConnection
conn, SqlTransaction trans, CommandType cmdType, String cmdText,
SqlParameter[] cmdParms) in
C:\Inetpub\wwwroot\ETS\ETS.Framework\DAL\SqlHelper .cs:226
ETS.Framework.DAL.SqlHelper.ExecuteReader(String connString, CommandType
cmdType, String cmdText, SqlParameter[] cmdParms) in
C:\Inetpub\wwwroot\ETS\ETS.Framework\DAL\SqlHelper .cs:129
ETS.Business.DAL.SQLDataAccessLayer.GetCampusByCod e(String CampusCode) in
C:\Inetpub\wwwroot\ETS\ETS.Business\DAL\SQLDataAcc essLayer.cs:401
ETS.Business.BLL.Campus.GetCampusByCode(String CampusCode) in
C:\Inetpub\wwwroot\ETS\ETS.Business\BLL\Campus.cs: 68
ETS.Web.UserControl.Menu.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\ETS\UserControl\Menu.ascx.cs:21
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()

----------------------------------------------------------------------------
----

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
Nov 19 '05 #1
1 5135
Dale:

Does this only happen when you are in the debugger?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 7 Jun 2005 16:11:34 +0800, "Dale" <xi**********@intel.com>
wrote:
Hi,
I encountered this error when I debug my asp.net web application.
What might be the reason? How can I resolve this? Thanks!

Server Error in '/ETS' Application.
----------------------------------------------------------------------------
----

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.

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.

Source Error:
Line 224:
Line 225: if (conn.State != ConnectionState.Open)
Line 226: conn.Open();
Line 227:
Line 228: cmd.Connection = conn;
Source File: C:\Inetpub\wwwroot\ETS\ETS.Framework\DAL\SqlHelper .cs Line:
226

Stack Trace:
[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.]

System.Data.SqlClient.SqlConnectionPoolManager.Ge tPooledConnection(SqlConnec
tionString options, Boolean& isInTransaction)
System.Data.SqlClient.SqlConnection.Open()
ETS.Framework.DAL.SqlHelper.PrepareCommand(SqlComm and cmd, SqlConnection
conn, SqlTransaction trans, CommandType cmdType, String cmdText,
SqlParameter[] cmdParms) in
C:\Inetpub\wwwroot\ETS\ETS.Framework\DAL\SqlHelpe r.cs:226
ETS.Framework.DAL.SqlHelper.ExecuteReader(String connString, CommandType
cmdType, String cmdText, SqlParameter[] cmdParms) in
C:\Inetpub\wwwroot\ETS\ETS.Framework\DAL\SqlHelpe r.cs:129
ETS.Business.DAL.SQLDataAccessLayer.GetCampusByCod e(String CampusCode) in
C:\Inetpub\wwwroot\ETS\ETS.Business\DAL\SQLDataAc cessLayer.cs:401
ETS.Business.BLL.Campus.GetCampusByCode(String CampusCode) in
C:\Inetpub\wwwroot\ETS\ETS.Business\BLL\Campus.cs :68
ETS.Web.UserControl.Menu.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\ETS\UserControl\Menu.ascx.cs:2 1
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()

----------------------------------------------------------------------------
----

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: fedor | last post by:
Hi all, I have a problem with mysql connections. After about 28000-29000 connections, I get a "Can't connect to MySQL server on '127.0.0.1'" error. I have made a small program which generates...
0
by: Ryan Schefke | last post by:
------=_NextPart_000_0077_01C34C8B.2B90C960 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ..I just sent this out to the win32 distribution list but no one has...
3
by: Amy M | last post by:
A user is having issues with replication. The message states it can't find a database. This database is on the distributor. When I go to Enterprise manager and add that server with a valid logon...
1
by: Akif | last post by:
Hi. I'm a SQL Server novice, so apologies if any of this sounds simple. I am running Windows XP SP2, and have just installed SQLServer 2000. I need another application to connect to SQLServer,...
3
by: AGB | last post by:
Hi all, I have a two hop issue. I have two machines in the same domain--one webserver and the other hosting SQL Server. I am using impersonation and integrated windows authentication but for...
7
by: CJ Taylor | last post by:
Hey all, Was wondering if anyone could answer a question using the Windows Scripting Host to use the Win32API to connect to a network share on an NT server. The problem I am having is that I...
10
by: amirmira | last post by:
I have a Windows Service developed in VB.NET that attempts to connect to a database as soon as the service starts. I have no problem when I start the service manually - but when I restart the...
0
by: markallen | last post by:
My e-commerce sites over18.co.uk/shop and specialorders.co.uk/shop will not connect to third party credit card processors protx.com. I have other shops with other hosts that have exactly the same...
1
by: vbace2 | last post by:
I have searched this forum, and the web, and I have not been able to find a solution to my issue. I may not have used the right search information to find the answer, but I found a lot of issues...
6
by: SRK | last post by:
Hi, I have installed free TDS ODBC driver on Linux and from there I am trying to connect to MS SQLSERVER installed on Windows machine. But it gives me following error - tsql -H ps6312 -p 1433...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.