473,511 Members | 16,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
May 12 '06 #1
11 3904
"Suresh.P.R" <Su******@discussions.microsoft.com> wrote in message
news:5D**********************************@microsof t.com...
Through ASP.Net in C# how we can check automatically that the Web Site is
up.
You can't get a website to check whether it's available - if it's not
available, it'll never be able to check whether it's available...
Or generally through .Net windows application how we can check a
particular
web site is up.


http://www.google.com/search?hl=en&l...ttpWebResponse
May 12 '06 #2
hi,

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

Suresh
"Mark Rae" wrote:
"Suresh.P.R" <Su******@discussions.microsoft.com> wrote in message
news:5D**********************************@microsof t.com...
Through ASP.Net in C# how we can check automatically that the Web Site is
up.


You can't get a website to check whether it's available - if it's not
available, it'll never be able to check whether it's available...
Or generally through .Net windows application how we can check a
particular
web site is up.


http://www.google.com/search?hl=en&l...ttpWebResponse

May 12 '06 #3
"Suresh.P.R" <Su******@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com...
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&l...ttpWebResponse
May 12 '06 #4
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

"Mark Rae" wrote:
"Suresh.P.R" <Su******@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com...
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&l...ttpWebResponse

May 12 '06 #5
The web classes can help you put together code to perform two necessary
actions, ping the server to see if the server is alive - then connect to
port 80 on the server via telnet into the web application and read the
response, or make a post/get request and read the response.

http://www.asp.net/Tutorials/quickstart.aspx
http://www.codeproject.com/dotnet/CSharpPing.asp
--
Regards

John Timney
Microsoft MVP

"Suresh.P.R" <Su******@discussions.microsoft.com> wrote in message
news:5D**********************************@microsof t.com...
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

May 12 '06 #6
"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:ud**************@TK2MSFTNGP04.phx.gbl...
ping the server to see if the server is alive


How will that help if ICMP has been disabled...?
May 12 '06 #7
"Suresh.P.R" <Su******@discussions.microsoft.com> wrote in message
news:84**********************************@microsof t.com...
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...?
May 12 '06 #8
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

--
Regards

John Timney
Microsoft MVP

"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> wrote in message
news:eY**************@TK2MSFTNGP04.phx.gbl...
"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:ud**************@TK2MSFTNGP04.phx.gbl...
ping the server to see if the server is alive


How will that help if ICMP has been disabled...?

May 12 '06 #9
"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
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...
May 13 '06 #10
Thanks John Timney ( MVP ).

=====================Suresh
"Mark Rae" wrote:
"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
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...

May 15 '06 #11
Thanks Mark Rae

==============Suresh
"Mark Rae" wrote:
"Suresh.P.R" <Su******@discussions.microsoft.com> wrote in message
news:84**********************************@microsof t.com...
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...?

May 15 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2822
by: ALthePal | last post by:
Hi, I'm not sure if we are able to or even how to loop through the web forms in a VB.NET project during design time. In MSAccess we are able to go through the database -> forms collection and...
13
2085
by: Stephen Kay | last post by:
Is there a way to redirect every single page on an existing web site through a php function? In other words, say I have a whole functional HTML web site, never written to use any php. Now I...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7418
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.