through asp.net in C# how to check a web site is up

G

Guest

Hi,

Through ASP.Net in C# how we can check automatically that the Web Site is up.

Or generally through .Net windows application how we can check a particular
web site is up.

Please inform me,

Suresh
 
G

Guest

hi,

Please tell me how we can activate pinging the ip address through the
ASP.Net Page. Please help me.

Suresh
 
M

Mark Rae

Please tell me how we can activate pinging the ip address through the
ASP.Net Page. Please help me.

1) Please re-read my earlier reply - you CAN'T use an ASP.NET page to check
itself...if the site is down, the page won't load so it won't be able to
check itself, will it...?

2) You can't expect ping to tell you whether a website is up or not - even
if ICMP has not been disabled, all that a ping from a webserver will tell
you is that the server is on - it will not tell you if IIS is running or if
a website is up or not.

3) As I've already told you, if you want to be certain that a website is
available (i.e. responding to requests), then you have to send it a request
and interrogate its response.
Once again:
http://www.google.com/search?hl=en&...5-48,GGLG:en&q=HttpWebRequest+HttpWebResponse
 
G

Guest

Hi,

Thanks.

Generally, if a remote machine which may have windows os or Linux os, that I
want to check/ ping from a remote computer that the machine is up or not. For
this is there any option through ASP.Net

Please help me once again.

====================Suresh
 
M

Mark Rae

Generally, if a remote machine which may have windows os or Linux os, that
I
want to check/ ping from a remote computer that the machine is up or not.
For
this is there any option through ASP.Net

Please help me once again.

THAT ISN'T WHAT YOU ASKED IN YOUR ORIGINAL POST!!!

I really don't know how to make this any simpler...

1) Sending a ping request to a server DOES NOT guarantee that the server is
live - lots of perfectly live servers deliberately do not respond to pings -
that doesn't mean that they are disconnected.

2) Even if you do get a response back from your ping request, that will not
tell you anything other than the fact that the server is live and
broadcasting - it will NOT tell you whether any services (e.g. IIS, SQL
Server, Exchange, FTP, POP3 etc) are running on that server.

3) If you want to know whether a website is up or not, you need to send it
an HTTP request and interrogate the HTTP response (or not) back from it.


Can you really not understand this...?
 
J

John Timney \( MVP \)

Then you can choose to ping or not, but still try and connect to the web
server anyway. If the server is offline, pretty sure a telnet connect will
time out almost immediately anyway, a lack of ping response does not
indicate an offline server..

Whatever you chose, you are going to have to use the same reponses a web
browser, or remote socket call would recieve and work it out from there
 
M

Mark Rae

Then you can choose to ping or not, but still try and connect to the web
server anyway. If the server is offline, pretty sure a telnet connect
will time out almost immediately anyway, a lack of ping response does not
indicate an offline server..

Whatever you chose, you are going to have to use the same reponses a web
browser, or remote socket call would recieve and work it out from there

Yes I know - that's what I said originally...
 
G

Guest

Thanks Mark Rae

==============Suresh


Mark Rae said:
THAT ISN'T WHAT YOU ASKED IN YOUR ORIGINAL POST!!!

I really don't know how to make this any simpler...

1) Sending a ping request to a server DOES NOT guarantee that the server is
live - lots of perfectly live servers deliberately do not respond to pings -
that doesn't mean that they are disconnected.

2) Even if you do get a response back from your ping request, that will not
tell you anything other than the fact that the server is live and
broadcasting - it will NOT tell you whether any services (e.g. IIS, SQL
Server, Exchange, FTP, POP3 etc) are running on that server.

3) If you want to know whether a website is up or not, you need to send it
an HTTP request and interrogate the HTTP response (or not) back from it.


Can you really not understand this...?
 

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

Top