Click here to Skip to main content
15,886,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello!, is there a way to control if the server where is running the app en asp.net, stop working or is disconect from the network. I have an app to show the server time but I need to show another thing if the server stop working.

Thanks.
Posted

1 solution

Not as standard - the whole idea is that it's a request / response process, so unless your client queries the server on a regular interval there is no connection so you can't tell if the server stops.

You can always set a timer to do a quick check and see if it's alive?
 
Share this answer
 
Comments
DaddyDom 10-Oct-15 6:54am    
How to set a timer to do a quick check ?
OriginalGriff 10-Oct-15 7:06am    
Um..."I have an app to show the server time" - which you are presumably updating in some way?
DaddyDom 10-Oct-15 9:31am    
I have an updatepanel with a label and timer showing the time in the server. My question is how to know if the server stopped or doesn't have conection. I want to show the time from another source if I know that the server stopped.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900