473,756 Members | 4,511 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Published 'Personal WEB Site' problems

Developed this personal WEB site with the new ASP.NET 2.0 Beta:

http://www.techsoft.no/bendik/

It has got this problem: After a while browsing through pictures on the
site, an error occurs:

'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.'

My suspicions go in the direction of the PhotoManager. I see that its ctor
opens up a connection with the database. But I cannot see any closing of the
connection. I guess should be a C# garbage collection thing. It is supposed
to be closed when the connection is no longer in use, right ? Well, in my
case it doesn't seem to be closed appropriately, at least not in due time.
Only after a while of waiting (several minutes) can I get back into the
site. Some connections then probably have timed out.

Been struggling with it for a couple of days ow and getting really
frustrated. Is this a Beta bug maybe ? Has anyone else experienced this ?
How can I fix it - or get around it ?

Any clues appreciated!

Bendik
Nov 19 '05 #1
5 1696
The connection pool should only fill up if the connection string to the DB is
different on each use of a connection in code. Try using the same connection
string and an existing connection from the pool will be used.

"Bendik Engebretsen" wrote:
Developed this personal WEB site with the new ASP.NET 2.0 Beta:

http://www.techsoft.no/bendik/

It has got this problem: After a while browsing through pictures on the
site, an error occurs:

'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.'

My suspicions go in the direction of the PhotoManager. I see that its ctor
opens up a connection with the database. But I cannot see any closing of the
connection. I guess should be a C# garbage collection thing. It is supposed
to be closed when the connection is no longer in use, right ? Well, in my
case it doesn't seem to be closed appropriately, at least not in due time.
Only after a while of waiting (several minutes) can I get back into the
site. Some connections then probably have timed out.

Been struggling with it for a couple of days ow and getting really
frustrated. Is this a Beta bug maybe ? Has anyone else experienced this ?
How can I fix it - or get around it ?

Any clues appreciated!

Bendik

Nov 19 '05 #2
I haven't done anything to the connection strings used in the 'Personal WEB
Site Starter Kit'. In the source code of PhotoManager ctor it says
connection = new
SqlConnection(C onfigurationMan ager.Connection Strings["Personal"].ConnectionStri ng);

So then it should be the same all the time, shouldn't it ? I admit that I am
an ASP newbie, so I do not understand that much of what is going on with the
database yet. I am just trying to figure out why my site won't run properly
from the server. Could it be a bu in SQL Server Express 2005 Beta which I am
using on the server ? Because it runs fine here when running locally on the
Visual Studio.NET 2005 Beta machine (XP Professional).

Bendik
"Brad Roberts" <Br************ *****@hotmail.c om> wrote in message
news:60******** *************** ***********@mic rosoft.com...
The connection pool should only fill up if the connection string to the DB
is
different on each use of a connection in code. Try using the same connection
string and an existing connection from the pool will be used.

"Bendik Engebretsen" wrote:
Developed this personal WEB site with the new ASP.NET 2.0 Beta:

http://www.techsoft.no/bendik/

It has got this problem: After a while browsing through pictures on the
site, an error occurs:

'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.'

My suspicions go in the direction of the PhotoManager. I see that its ctor
opens up a connection with the database. But I cannot see any closing of
the
connection. I guess should be a C# garbage collection thing. It is
supposed
to be closed when the connection is no longer in use, right ? Well, in my
case it doesn't seem to be closed appropriately, at least not in due time.
Only after a while of waiting (several minutes) can I get back into the
site. Some connections then probably have timed out.

Been struggling with it for a couple of days ow and getting really
frustrated. Is this a Beta bug maybe ? Has anyone else experienced this ?
How can I fix it - or get around it ?

Any clues appreciated!

Bendik

Nov 19 '05 #3
See : http://beta.asp.net/QUICKSTART/aspne.../retrieve.aspx
for detailed sample code you can use
to check the PhotoManager code you have.

View both the web.config and the using_connectio nstrings.cs
source code, modify appropiately ( after backing up the original )
and test again.

Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
=============== ===========

"Bendik Engebretsen" <ba**********@h otmail.com> wrote in message
news:OJ******** ******@TK2MSFTN GP09.phx.gbl...
I haven't done anything to the connection strings used in the 'Personal WEB
Site Starter Kit'. In the source code of PhotoManager ctor it says
connection = new
SqlConnection(C onfigurationMan ager.Connection Strings["Personal"].ConnectionStri ng);

So then it should be the same all the time, shouldn't it ? I admit that I am
an ASP newbie, so I do not understand that much of what is going on with the
database yet. I am just trying to figure out why my site won't run properly
from the server. Could it be a bu in SQL Server Express 2005 Beta which I am
using on the server ? Because it runs fine here when running locally on the
Visual Studio.NET 2005 Beta machine (XP Professional).

Bendik
"Brad Roberts" <Br************ *****@hotmail.c om> wrote in message
news:60******** *************** ***********@mic rosoft.com...
The connection pool should only fill up if the connection string to the DB
is
different on each use of a connection in code. Try using the same connection
string and an existing connection from the pool will be used.

"Bendik Engebretsen" wrote:
Developed this personal WEB site with the new ASP.NET 2.0 Beta:

http://www.techsoft.no/bendik/

It has got this problem: After a while browsing through pictures on the
site, an error occurs:

'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.'

My suspicions go in the direction of the PhotoManager. I see that its ctor
opens up a connection with the database. But I cannot see any closing of
the
connection. I guess should be a C# garbage collection thing. It is
supposed
to be closed when the connection is no longer in use, right ? Well, in my
case it doesn't seem to be closed appropriately, at least not in due time.
Only after a while of waiting (several minutes) can I get back into the
site. Some connections then probably have timed out.

Been struggling with it for a couple of days ow and getting really
frustrated. Is this a Beta bug maybe ? Has anyone else experienced this ?
How can I fix it - or get around it ?

Any clues appreciated!

Bendik


Nov 19 '05 #4
Thanx Juan! In my web.config I have the following connection string which is
used by the PhotoManager:

<add name="Personal" connectionStrin g="Data Source=.\SQLExp ress;Integrated
Security=True;U ser
Instance=True;A ttachDBFilename =|DataDirectory |Personal.mdf"
providerName="S ystem.Data.SqlC lient"/>

As I said, I have not changed it since I create my site with the 'Personal
WEB Site Starter Kit'. But maybe I should, since I have now published the
site on our Windows 2003 server. On this server I have not installed the
Visual Studio.Net 2005 Beta. I have only installed the SQL Server Express
2005 Beta and .NET 2.0 Framework to make it work there.

Should I change my connection string ?

Bendik

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:eN******** ********@TK2MSF TNGP12.phx.gbl. ..
See : http://beta.asp.net/QUICKSTART/aspne.../retrieve.aspx
for detailed sample code you can use
to check the PhotoManager code you have.

View both the web.config and the using_connectio nstrings.cs
source code, modify appropiately ( after backing up the original )
and test again.

Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
=============== ===========

"Bendik Engebretsen" <ba**********@h otmail.com> wrote in message
news:OJ******** ******@TK2MSFTN GP09.phx.gbl...
I haven't done anything to the connection strings used in the 'Personal WEB
Site Starter Kit'. In the source code of PhotoManager ctor it says
connection = new
SqlConnection(C onfigurationMan ager.Connection Strings["Personal"].ConnectionStri ng);

So then it should be the same all the time, shouldn't it ? I admit that I
am
an ASP newbie, so I do not understand that much of what is going on with
the
database yet. I am just trying to figure out why my site won't run
properly
from the server. Could it be a bu in SQL Server Express 2005 Beta which I
am
using on the server ? Because it runs fine here when running locally on
the
Visual Studio.NET 2005 Beta machine (XP Professional).

Bendik
"Brad Roberts" <Br************ *****@hotmail.c om> wrote in message
news:60******** *************** ***********@mic rosoft.com...
The connection pool should only fill up if the connection string to the DB
is
different on each use of a connection in code. Try using the same
connection
string and an existing connection from the pool will be used.

"Bendik Engebretsen" wrote:
Developed this personal WEB site with the new ASP.NET 2.0 Beta:

http://www.techsoft.no/bendik/

It has got this problem: After a while browsing through pictures on the
site, an error occurs:

'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.'

My suspicions go in the direction of the PhotoManager. I see that its
ctor
opens up a connection with the database. But I cannot see any closing of
the
connection. I guess should be a C# garbage collection thing. It is
supposed
to be closed when the connection is no longer in use, right ? Well, in my
case it doesn't seem to be closed appropriately, at least not in due
time.
Only after a while of waiting (several minutes) can I get back into the
site. Some connections then probably have timed out.

Been struggling with it for a couple of days ow and getting really
frustrated. Is this a Beta bug maybe ? Has anyone else experienced this ?
How can I fix it - or get around it ?

Any clues appreciated!

Bendik



Nov 19 '05 #5
Hi, Bendik.

If your problem is that you're having too many connections stay
open, then, no, you don't have to change youre connection string at all.

It working fine [ in fact, too well... ;-) ]

What I meant was check for where you would try to place the
connection.Clos e() ( in a Try / Finally clause )

See :

http://beta.asp.net/QUICKSTART/util/...ionStrings.src

try
{
// your Select statement
}
finally
{
connection.Clos e();
}

Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
Ven, y hablemos de ASP.NET...
=============== =======

"Bendik Engebretsen" <ba**********@h otmail.com> wrote in message
news:eY******** ******@TK2MSFTN GP15.phx.gbl...
Thanx Juan! In my web.config I have the following connection string which is
used by the PhotoManager:

<add name="Personal" connectionStrin g="Data Source=.\SQLExp ress;Integrated
Security=True;U ser
Instance=True;A ttachDBFilename =|DataDirectory |Personal.mdf"
providerName="S ystem.Data.SqlC lient"/>

As I said, I have not changed it since I create my site with the 'Personal
WEB Site Starter Kit'. But maybe I should, since I have now published the
site on our Windows 2003 server. On this server I have not installed the
Visual Studio.Net 2005 Beta. I have only installed the SQL Server Express
2005 Beta and .NET 2.0 Framework to make it work there.

Should I change my connection string ?

Bendik

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:eN******** ********@TK2MSF TNGP12.phx.gbl. ..
See : http://beta.asp.net/QUICKSTART/aspne.../retrieve.aspx
for detailed sample code you can use
to check the PhotoManager code you have.

View both the web.config and the using_connectio nstrings.cs
source code, modify appropiately ( after backing up the original )
and test again.

Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
=============== ===========

"Bendik Engebretsen" <ba**********@h otmail.com> wrote in message
news:OJ******** ******@TK2MSFTN GP09.phx.gbl...
I haven't done anything to the connection strings used in the 'Personal WEB
Site Starter Kit'. In the source code of PhotoManager ctor it says
connection = new
SqlConnection(C onfigurationMan ager.Connection Strings["Personal"].ConnectionStri ng);

So then it should be the same all the time, shouldn't it ? I admit that I
am
an ASP newbie, so I do not understand that much of what is going on with
the
database yet. I am just trying to figure out why my site won't run
properly
from the server. Could it be a bu in SQL Server Express 2005 Beta which I
am
using on the server ? Because it runs fine here when running locally on
the
Visual Studio.NET 2005 Beta machine (XP Professional).

Bendik
"Brad Roberts" <Br************ *****@hotmail.c om> wrote in message
news:60******** *************** ***********@mic rosoft.com...
The connection pool should only fill up if the connection string to the DB
is
different on each use of a connection in code. Try using the same
connection
string and an existing connection from the pool will be used.

"Bendik Engebretsen" wrote:
Developed this personal WEB site with the new ASP.NET 2.0 Beta:

http://www.techsoft.no/bendik/

It has got this problem: After a while browsing through pictures on the
site, an error occurs:

'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.'

My suspicions go in the direction of the PhotoManager. I see that its
ctor
opens up a connection with the database. But I cannot see any closing of
the
connection. I guess should be a C# garbage collection thing. It is
supposed
to be closed when the connection is no longer in use, right ? Well, in my
case it doesn't seem to be closed appropriately, at least not in due
time.
Only after a while of waiting (several minutes) can I get back into the
site. Some connections then probably have timed out.

Been struggling with it for a couple of days ow and getting really
frustrated. Is this a Beta bug maybe ? Has anyone else experienced this ?
How can I fix it - or get around it ?

Any clues appreciated!

Bendik



Nov 19 '05 #6

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

Similar topics

7
6772
by: Adam Barnett via AccessMonster.com | last post by:
I have an Access application split into a FE and BE with a workgroup file (.mdw) for authentication. I currently have the FE application setup as a published application for 40 users. We have been experiencing some unusual behavior that was not experienced when the application was run in a client/server environment. What is the proper way to setup an Access application via published applications? I do not want the user to have to get to...
2
1159
by: Bennett Haselton | last post by:
When you create a C# Web Application project, you have to specify at project creation time the URL you want to publish the project to. Is there any way in the IDE to change the server that the project is published to at build time? You can go into Project properties -> Common Properties -> Web Settings and under "Web Server Information" it shows the name of the Web server -- but it's greyed out so that you can't edit it. Is that...
8
2262
by: VB Programmer | last post by:
I would appreciate your assistance on this ASP.NET 2.0 site.... This is the wierd problem: While accessing the built in .NET functions for 'profiling' or 'membership' an error is generated (see following 2 examples): ---- EXAMPLE 1 -------- OK --> Dim p As New ProfileCommon OK --> p = Profile.GetProfile(Me.ddlRacer.SelectedItem.Text) FAILS --> Me.lblDebug.Text = p.FirstName.ToString
0
1116
by: clickon | last post by:
I am working on a portal web application that is largely modular. I have been working on it on a "development" website. Some sections have been tested and are complete. I decided to set up a Live website on the same server so i could work on the development web site without affecting people using the completed sections. I set up the website and then used VS 2005 to "publish" the site. This seemed to work OK, it precompiled the whole...
1
1286
by: yfa | last post by:
Hello, I'm using WebPart on a IIS 6.0 web server running Windows 2003. I made a backup of the ASP database and I restore it on an other computer with Windows XP. Test 1 : I started the web site with the personal web server provided by Visual Studio 2005. WebParts previously created when the web site was on IIS 6.0 do not display. Test 2 : I started the web site with IIS 5.0 provided by Windows XP.
5
1761
by: John | last post by:
Hi When I try to install a published app using a url like http://www.mydomain.com/publish.htm, it starts the download but then comes up with the eror given at the end below. I am installing the app on an sbs 2003 (windows 2003 + ISA 2000) server. I suspect ISA 2000 is the problem but don't know where and how to give proxy credentials in the whole publishing and installing process. Any help to fix this will be appreciated. Thanks
2
1820
by: =?Utf-8?B?SmF5IE1pbGxlcg==?= | last post by:
I'm having problems with the login control when I publish my site. Everything works fine when I run the application from Visual Studio and when I browse directly to the site where it is being developed. The problem comes when I publish the site to another location on the same computer. The login always fails. The site always works from the development location but not from the published location. I've compared everything I can think of...
4
10315
by: Joe | last post by:
Hello all! I added a Global.asax to my application. I'm using the Application_BeginRequest event. Everything works fine in my development enviorment but when I publish the web site the Global.asax file doesn't get published. If I manually copy it the event doesn't seem to get called. Any idea what's going on here? Thanks,
2
1510
by: Jonathan Wood | last post by:
I decided to give another go at getting the Personal Site Starter Kit working for me. I'd really love to get this working. But I've had nothing but trouble. Specifically, there are all sorts of problems with the photos. At one point, it shows I have 4 photos where I administer the photos yet shows I have only 3 where photos are normally viewed. And when navagating those photos, sometimes it just shows the same photo again. But more often...
0
9455
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9271
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10031
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...
1
9838
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9708
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8709
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7242
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
6534
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
5140
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...

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.