Mitchel's Forums

Subject: Timeout expired problem
Prev Next
You are not authorized to post a reply.

AuthorMessages
shira abramUser is Offline
New Poster
New Poster
Posts:10

10/29/2008 12:12 PM  

Hi all,

I have DNN 4.4.1 installed. When I try to run a slightly complex operation more than a few times in a row |(say, in a loop), I get the following exception:

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.

When I look at the sql management studio activity monitor, I see about 150 connection with '.Net sqlClient data provider' application, and 'sleeping' status.

I have the same site installed on another machine, and everything works ok on it. So I'm guessing this is a local configuration problem..

Any Ideas? Thanks in advance <img src=" border=0>

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5607

10/29/2008 2:29 PM  
My guess is that you have something that isn't closing the connections in a timely fashion.

Are you sure that you are closing connections as soon as possible?

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
shira abramUser is Offline
New Poster
New Poster
Posts:10

10/29/2008 2:38 PM  

Thanks for your rapid reply.

I'm using an SqlDAtaProvider class that calls sqlHelper 's  ExecuteReader function, that recieves a connection string an sp name and the sp parameters. I don't have a reference to the connection itself (Do I?), I'm not the one opening and closing it..

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5607

10/29/2008 2:58 PM  
The data reader itself, is a reference to the connection, you will want to be sure that you close your reader as soon as you are done with it.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

3Essentials is my recommended Shared Hosting Provider

This site is hosted on a VPS from HostMySIte.com

Mosso is my recommended cloud computing provider. Use reference code REF-ICG to get $100 off your second month!

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
shira abramUser is Offline
New Poster
New Poster
Posts:10

10/29/2008 3:05 PM  

Ok, I will give it a try, thanks <img src=" border=0> 
(Although this still doesn't explain why its working on the other machine..)

You are not authorized to post a reply.
Forums >Development Discussion >DotNetNuke > Timeout expired problem



ActiveForums 3.7