通过asp.net中的C#如何检查一个网站是否正常运行 [英] through asp.net in C# how to check a web site is up

查看:83
本文介绍了通过asp.net中的C#如何检查一个网站是否正常运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




通过C#中的ASP.Net,我们可以自动检查网站是否已启动。


或通常通过.Net windows应用程序如何检查特定的

网站是否已经启动。


请通知我,


Suresh

解决方案

" Suresh.P.R" <苏****** @ discussions.microsoft.com>在消息中写道

新闻:5D ********************************** @ microsof t.com ...

通过C#中的ASP.Net,我们可以自动检查网站是否已启动。


您无法获得一个网站来检查它是否可用 - 如果它不是

可用,它将永远不会能够检查它是否可用......

或者通常通过.Net windows应用程序我们如何检查特定的
网站是否已启动。


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





请告诉我如何通过

ASP.Net页面激活ping ip地址。请帮帮我。


Suresh

" Mark Rae"写道:

" Suresh.P.R" <苏****** @ discussions.microsoft.com>在消息中写道
新闻:5D ********************************** @ microsof t.com。 ..

通过C#中的ASP.Net,我们可以自动检查网站是否已经启动。



你可以没有一个网站检查它是否可用 - 如果它不可用,它将永远无法检查它是否可用......
< blockquote class =post_quotes>或者通常通过.Net windows应用程序我们如何检查特定的
网站是否已经启动。



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



" ; Suresh.P.R" <苏****** @ discussions.microsoft.com>在消息中写道

新闻:AF ********************************** @ microsof t.com ...

请告诉我如何通过
ASP.Net页面激活ping ip地址。请帮帮我。




1)请重新阅读我之前的回复 - 你不能使用ASP.NET页面检查

本身......如果网站关闭,页面就不会加载,所以它无法支付
检查自己,是不是......?


2)你不能指望ping告诉你一个网站是否已经启动 - 如果没有禁用ICMP,那么即使是

,所有来自网络服务器的ping都将告诉

你是服务器打开了 - 它不会告诉你IIS是否正在运行或是否

a网站启动了。


3)正如我已经告诉过你的,如果你想确定一个网站是否可用(即响应请求),那么你必须向它发送一个请求

并询问其回复。

再一次:
http://www.google.co m / search?hl = en& l ... ttpWebResponse


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

解决方案

"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


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



"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


这篇关于通过asp.net中的C#如何检查一个网站是否正常运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆