473,586 Members | 2,839 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 3913
"Suresh.P.R " <Su******@discu ssions.microsof t.com> wrote in message
news:5D******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:5D******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:AF******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:AF******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:5D******** *************** ***********@mic rosoft.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*****@despam med.com> wrote in message
news:ud******** ******@TK2MSFTN GP04.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******@discu ssions.microsof t.com> wrote in message
news:84******** *************** ***********@mic rosoft.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******** ******@TK2MSFTN GP04.phx.gbl...
"John Timney ( MVP )" <ti*****@despam med.com> wrote in message
news:ud******** ******@TK2MSFTN GP04.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*****@despam med.com> wrote in message
news:%2******** *******@TK2MSFT NGP04.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

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

Similar topics

6
2842
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 loop through all the forms in a database and pull information about the form (controls and properties). We would need to do the same in our VB.NET...
13
2095
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 would like to have a php function handle displaying every page, for example, instead of: http://www.mysite.com/mypage.html you would call:
0
7911
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8215
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6610
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3836
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2345
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 we have to send another system
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.