473,666 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.InvalidO perationExcepti on: 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\wwwr oot\ETS\ETS.Fra mework\DAL\SqlH elper.cs Line:
226

Stack Trace:
[InvalidOperatio nException: 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.Sql Client.SqlConne ctionPoolManage r.GetPooledConn ection(SqlConne c
tionString options, Boolean& isInTransaction )
System.Data.Sql Client.SqlConne ction.Open()
ETS.Framework.D AL.SqlHelper.Pr epareCommand(Sq lCommand cmd, SqlConnection
conn, SqlTransaction trans, CommandType cmdType, String cmdText,
SqlParameter[] cmdParms) in
C:\Inetpub\wwwr oot\ETS\ETS.Fra mework\DAL\SqlH elper.cs:226
ETS.Framework.D AL.SqlHelper.Ex ecuteReader(Str ing connString, CommandType
cmdType, String cmdText, SqlParameter[] cmdParms) in
C:\Inetpub\wwwr oot\ETS\ETS.Fra mework\DAL\SqlH elper.cs:129
ETS.Business.DA L.SQLDataAccess Layer.GetCampus ByCode(String CampusCode) in
C:\Inetpub\wwwr oot\ETS\ETS.Bus iness\DAL\SQLDa taAccessLayer.c s:401
ETS.Business.BL L.Campus.GetCam pusByCode(Strin g CampusCode) in
C:\Inetpub\wwwr oot\ETS\ETS.Bus iness\BLL\Campu s.cs:68
ETS.Web.UserCon trol.Menu.Page_ Load(Object sender, EventArgs e) in
c:\inetpub\wwwr oot\ETS\UserCon trol\Menu.ascx. cs:21
System.Web.UI.C ontrol.OnLoad(E ventArgs e)
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.P age.ProcessRequ estMain()

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

Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
Version:1.1.432 2.573
Nov 19 '05 #1
1 5143
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**********@i ntel.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.InvalidO perationExcepti on: 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\wwwr oot\ETS\ETS.Fra mework\DAL\SqlH elper.cs Line:
226

Stack Trace:
[InvalidOperatio nException: 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.Sq lClient.SqlConn ectionPoolManag er.GetPooledCon nection(SqlConn ec
tionString options, Boolean& isInTransaction )
System.Data.Sql Client.SqlConne ction.Open()
ETS.Framework.D AL.SqlHelper.Pr epareCommand(Sq lCommand cmd, SqlConnection
conn, SqlTransaction trans, CommandType cmdType, String cmdText,
SqlParameter[] cmdParms) in
C:\Inetpub\www root\ETS\ETS.Fr amework\DAL\Sql Helper.cs:226
ETS.Framework.D AL.SqlHelper.Ex ecuteReader(Str ing connString, CommandType
cmdType, String cmdText, SqlParameter[] cmdParms) in
C:\Inetpub\www root\ETS\ETS.Fr amework\DAL\Sql Helper.cs:129
ETS.Business.DA L.SQLDataAccess Layer.GetCampus ByCode(String CampusCode) in
C:\Inetpub\www root\ETS\ETS.Bu siness\DAL\SQLD ataAccessLayer. cs:401
ETS.Business.BL L.Campus.GetCam pusByCode(Strin g CampusCode) in
C:\Inetpub\www root\ETS\ETS.Bu siness\BLL\Camp us.cs:68
ETS.Web.UserCon trol.Menu.Page_ Load(Object sender, EventArgs e) in
c:\inetpub\www root\ETS\UserCo ntrol\Menu.ascx .cs:21
System.Web.UI.C ontrol.OnLoad(E ventArgs e)
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.P age.ProcessRequ estMain()

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

Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
Version:1.1.43 22.573


Nov 19 '05 #2

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

Similar topics

4
4362
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 the error """ import MySQLdb
0
3377
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 replied.can someone on this list please help? The issue should be trivial for experienced MySQL users, I'm just a novice, thanks!
3
1270
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 (I even tried logging on as sa), and I look at the databases. They are NOT the databases that exist on that server. They are the databases that are on the client (laptop)'s SQL Server. I've reinstalled sp3 (SQL 2000), and rebooted. Went to...
1
17088
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, and am specifying it to do so via localhost:1433, but keep getting an error whenever I try doing so saying it cannot connect to the database. A colleague of mine has the exact same set up on his machine, and he can connect to SQL Server fine....
3
1125
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 some reason the connection is bailing to the database from the IIS machine. I can use my localhost to connect to the remote database just fine. There are tons of post to this issue but they don't seem pan out much so I am curios if anyone has...
7
2659
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 am trying to connect as a different user that throws up an error upon connection, that says Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous
10
1902
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 computer that hosts the service, I get a Null Reference Exception when I try to connect to the database (I have set the service to start automatically). Any ideas why this is happening? Thanks in advance. Ajay Mirmira
0
1009
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 configuration that connect. This message appears: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@over18.co.uk...
1
3711
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 close to mine, but nothing has helped. We are running Apache/2.2.4 (Win32) PHP/5.2.3. I am trying to use the odbc_connect to connect to an MS Access database that is on another server. I have tried to use both a system DSN, as well as putting the...
6
8582
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 -U shiv locale is "en_US.UTF-8" locale charset is "UTF-8" Password: Msg 18456, Level 14, State 1, Server , Line 0
0
8871
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8783
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2773
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.