Timeout expired problem

E

Eric S

Hi All,

Using Windows 2008 enterprise version.

I created a web site using .net 3.5 and ms sql 2008. Sometimes when the web
site is idle it freezes afterwards when I clack on the menu and I am getting
a Time Out error as follows.

Timeout expired. The timeout period elapsed prior to completion of the
operation or the server is not responding.

What do you suggest to resolve it?

Thanks,

Eric
 
G

Guest

Hi All,

Using Windows 2008 enterprise version.

I created a web site using .net 3.5 and ms sql 2008. Sometimes when the web
site is idle it freezes afterwards when I clack on the menu and I am getting
a Time Out error as follows.

Timeout expired.  The timeout period elapsed prior to completion of the
operation or the server is not responding.

What do you suggest to resolve it?

Thanks,

Eric

Where does it freeze, on a database call?
 
E

Eric S

Hi Alexey,

It seems we get this error when it calls the database. The database is very
small and just carry some tables for the menu definitions. One problem that
I noticed every time we click on the menu there is a call to the database so
I will try to make sure, that there will be just one call to the database
when the menu is loaded. The point is that later we do a search in a much
bigger database and in that moment we never get the Timeout expired error.

Any suggestions and some idea for code is appreciated.

Thanks,

Eric

Hi All,

Using Windows 2008 enterprise version.

I created a web site using .net 3.5 and ms sql 2008. Sometimes when the
web
site is idle it freezes afterwards when I clack on the menu and I am
getting
a Time Out error as follows.

Timeout expired. The timeout period elapsed prior to completion of the
operation or the server is not responding.

What do you suggest to resolve it?

Thanks,

Eric

Where does it freeze, on a database call?
 
G

Guest

Hi Alexey,

It seems we get this error when it calls the database. The database is very
small and just carry some tables for the menu definitions. One problem that
I noticed every time we click on the menu there is a call to the database so
I will try to make sure, that there will be just one call to the database
when the menu is loaded. The point is that later we do a search in a much
bigger database and in that moment we never get the Timeout expired error..

Any suggestions and some idea for code is appreciated.

Thanks,

Eric








Where does it freeze, on a database call?- Hide quoted text -

- Show quoted text -

Check this article: http://www.15seconds.com/Issue/040830.htm

(regarding conn.Close and sp_who)

I would also try to check if you don't have the same behavior from SQL
Server Management Studio (or any other tool) - open connection,
execute your query, wait a while, execute again.
 
E

Eric S

Hi Alexey ,

Thanks for your reply.

I tested the sql statement that generates xml via the Server Management
Studio and it works just fine and I tried that many times. Is there any
tweaking that you may think that is required to do in ms sql 2008? Now when
I open only 1 connection for the menu and it does not crash anymore. I like
the idea of connection pooling since I need to think what happens when 50 to
100 people will get into the web site. Any class some where that manages
that?

Thanks again.

Eric


Hi Alexey,

It seems we get this error when it calls the database. The database is
very
small and just carry some tables for the menu definitions. One problem
that
I noticed every time we click on the menu there is a call to the database
so
I will try to make sure, that there will be just one call to the database
when the menu is loaded. The point is that later we do a search in a much
bigger database and in that moment we never get the Timeout expired error.

Any suggestions and some idea for code is appreciated.

Thanks,

Eric








Where does it freeze, on a database call?- Hide quoted text -

- Show quoted text -

Check this article: http://www.15seconds.com/Issue/040830.htm

(regarding conn.Close and sp_who)

I would also try to check if you don't have the same behavior from SQL
Server Management Studio (or any other tool) - open connection,
execute your query, wait a while, execute again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top