ASP.NET page stopped responding / cant connect to database

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2007
Posts: 32
Reputation: upstream is an unknown quantity at this point 
Solved Threads: 1
upstream's Avatar
upstream upstream is offline Offline
Light Poster

ASP.NET page stopped responding / cant connect to database

 
0
  #1
Apr 24th, 2009
hi all.

Here's my set-up:
Server 1: SQL Server 2005 Database
Server 2: Public Web Application using ASP.NET VB and IIS6

my newly published website is succesfully running! ~ but after a few minutes (or in some instances)..my application is stopping from responding, it only shows the hourglass cursor, almost forever . i still can't point out the problem, most like, database connectivity (but i was able to login at first, but its failing after a few minutes), but when im deleteting the published files and restoring it from the wwwroot folder. its working again. any similar experience and tips to troubleshoot this? xD badly need help. thanks!
Programming = new Art
---
I <3 BoA Kwon
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 7
Reputation: mcdt2424 is an unknown quantity at this point 
Solved Threads: 0
mcdt2424 mcdt2424 is offline Offline
Newbie Poster

Re: ASP.NET page stopped responding / cant connect to database

 
0
  #2
Apr 24th, 2009
I cant say that I ran into the same problem but I have run into issues when I forgot to copy over the file called precompiledApp.config to my production server.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 220
Reputation: mail2saion is an unknown quantity at this point 
Solved Threads: 33
mail2saion's Avatar
mail2saion mail2saion is offline Offline
Posting Whiz in Training

Re: ASP.NET page stopped responding / cant connect to database

 
0
  #3
Apr 25th, 2009
Most of the times i found that sql server not responding. This happened for my case is if i cretae a connection with transaction & try to run a select statement without embedding transaction then sql server behave like this.

Another option is check task manager of your server & then check memory usage, cpu usage. Hope you can find a clue.
MARK AS SOLVED if its help you.

REGARDS
MCTS - Shawpnendu bikash maloroy
http://shawpnendu.blogspot.com
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 32
Reputation: upstream is an unknown quantity at this point 
Solved Threads: 1
upstream's Avatar
upstream upstream is offline Offline
Light Poster

Re: ASP.NET page stopped responding / cant connect to database

 
0
  #4
Apr 27th, 2009
Originally Posted by mail2saion View Post
Most of the times i found that sql server not responding. This happened for my case is if i cretae a connection with transaction & try to run a select statement without embedding transaction then sql server behave like this.

Another option is check task manager of your server & then check memory usage, cpu usage. Hope you can find a clue.
Im sorry, but. what's an embedded transaction??? i think that's my problem..
Last edited by upstream; Apr 27th, 2009 at 4:57 am.
Programming = new Art
---
I <3 BoA Kwon
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 220
Reputation: mail2saion is an unknown quantity at this point 
Solved Threads: 33
mail2saion's Avatar
mail2saion mail2saion is offline Offline
Posting Whiz in Training

Re: ASP.NET page stopped responding / cant connect to database

 
0
  #5
Apr 27th, 2009
Embeded means did u use anything like this Conn.BeginTransaction() ???
Where Conn is a connection object.
MARK AS SOLVED if its help you.

REGARDS
MCTS - Shawpnendu bikash maloroy
http://shawpnendu.blogspot.com
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 220
Reputation: mail2saion is an unknown quantity at this point 
Solved Threads: 33
mail2saion's Avatar
mail2saion mail2saion is offline Offline
Posting Whiz in Training

Re: ASP.NET page stopped responding / cant connect to database

 
0
  #6
Apr 27th, 2009
DID YOU USE BeginTransaction() anywhere in your code?
MARK AS SOLVED if its help you.

REGARDS
MCTS - Shawpnendu bikash maloroy
http://shawpnendu.blogspot.com
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 32
Reputation: upstream is an unknown quantity at this point 
Solved Threads: 1
upstream's Avatar
upstream upstream is offline Offline
Light Poster

Re: ASP.NET page stopped responding / cant connect to database

 
0
  #7
Apr 27th, 2009
oh, the code doesn't have that. will check on this issue.
Programming = new Art
---
I <3 BoA Kwon
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 220
Reputation: mail2saion is an unknown quantity at this point 
Solved Threads: 33
mail2saion's Avatar
mail2saion mail2saion is offline Offline
Posting Whiz in Training

Re: ASP.NET page stopped responding / cant connect to database

 
0
  #8
Apr 27th, 2009
Could you please post codes from connection open to close.
MARK AS SOLVED if its help you.

REGARDS
MCTS - Shawpnendu bikash maloroy
http://shawpnendu.blogspot.com
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 32
Reputation: upstream is an unknown quantity at this point 
Solved Threads: 1
upstream's Avatar
upstream upstream is offline Offline
Light Poster

Re: ASP.NET page stopped responding / cant connect to database

 
0
  #9
Apr 27th, 2009
the previous program only uses con.Open. this is the sample of her code. this a function and simply called if connection is needed

...
Dim cn As New SqlConnection(connectionString)

If cn.State = Data.ConnectionState.Closed Then
cn.Open()
End If
...
any advice?
Programming = new Art
---
I <3 BoA Kwon
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 220
Reputation: mail2saion is an unknown quantity at this point 
Solved Threads: 33
mail2saion's Avatar
mail2saion mail2saion is offline Offline
Posting Whiz in Training

Re: ASP.NET page stopped responding / cant connect to database

 
0
  #10
Apr 27th, 2009
Did u use any third party component for accessing database or executing query LIKE .nettiers

Another observation is did you check the server cpu usage & memory usage exactly when this error occured.

Did this error is execution timeout or anything else. if so then post error description also.
MARK AS SOLVED if its help you.

REGARDS
MCTS - Shawpnendu bikash maloroy
http://shawpnendu.blogspot.com
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC