473,386 Members | 1,734 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,386 software developers and data experts.

Connection Pool Problem


Hello,

I have a problem with an application wherein the code as designed
originally was not ensuring closing of connections when the application
encountered an exception.

I have fixed this and lesson learned there (ALWAYS enclose your
connections in a TRY or a USING).

Now, however, the pool appears to be reestablishing these connections
every time the application starts up.

I understand that asp version 2.0 has functions available to flush the
pool. However, I am using standard .NET 2003 and am therefore unable
to use asp 2.0 - or at least that is the way I understand it.

However, I have thus far been unable to locate any way to flush the
pool. They don't seem to want to timeout and I don't wish to redo the
application. Every pool thread is taken up by the application.

If anyone knows how I can flush the connection pool, I would appreciate
it.

Note: This application is running on the same machine as the Database
server.

Thanks,
Steven Henley

--
henley.steve
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Apr 26 '06 #1
1 1239

henley.steve wrote:
Hello,

I have a problem with an application wherein the code as designed
originally was not ensuring closing of connections when the application
encountered an exception.

I have fixed this and lesson learned there (ALWAYS enclose your
connections in a TRY or a USING).

Now, however, the pool appears to be reestablishing these connections
every time the application starts up.

I understand that asp version 2.0 has functions available to flush the
pool. However, I am using standard .NET 2003 and am therefore unable
to use asp 2.0 - or at least that is the way I understand it.

However, I have thus far been unable to locate any way to flush the
pool. They don't seem to want to timeout and I don't wish to redo the
application. Every pool thread is taken up by the application.

If anyone knows how I can flush the connection pool, I would appreciate
it.

Note: This application is running on the same machine as the Database
server.

Thanks,
Steven Henley


Before making posts to a news group, it is a good idea to read some of
the ones that are already there. There are two reasons for this - the
first is that your question may have been asked and answered quite
recently by other people. The second reason is to establish whether
the group you are posting to is relevant for your question.

If you had done this, you would quite quickly have come across the
following advice to previous posters:

This group covers classic ASP. Dotnet is a different technology. Try
posting your question to microsoft.public.dotnet.framework.aspnet.

--
Mike Brind

Apr 26 '06 #2

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

Similar topics

4
by: Mahesh D. Rane | last post by:
Hi, I am connecting to sql databse from windows C# form. when i close the form, then also the connection to databse is active. Its not allowing me to delete the database. But if i close the...
7
by: greg | last post by:
Hi We have w2k, iis5, .NET/c# I periodically receive this message and the system freezes ++++++++++++++++++++++++++++++++++++++++++++++++++ Timeout expired. The timeout period elapsed...
5
by: DaM | last post by:
Hi guys, I'm having this problem with my ASP.Net application: I was testing the whole site, and it seem to work fine. Fast and stable, but suddenly it stopped working and this error occurred:...
1
by: mingki | last post by:
Hi Developers, I am a .Net developer of a Large Online Retailling Company. I would like to have your help on a Connection Pool issue. Recently we have developed a Web Application on ODP .Net...
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
3
by: LRK | last post by:
I am in the process of moving an ASP.NET app from my development machine to a web server. I am getting the following error message: Message: "Timeout expired. The timeout period elapsed prior to...
2
by: RyoSaeba | last post by:
Hello, I have a problem with the session state set to Sql Server (AspNet 1.1, Windows Server 2003 on an Application Center cluster, Sql Server 2000 on another server). Sometimes, when many user...
2
by: JoeSep | last post by:
Hi! Is it correct/safe to define a connection pool in the string "sqlConnectionString" of the "sessionState" section of Web.config? - The application is developed using AspNet 1.1 in a Windows...
16
by: crbd98 | last post by:
Hello All, Some time ago, I implemented a data access layer that included a simple connectin pool. At the time, I did it all by myself: I created N connections, each connection associated with...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...

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.