yqyq22,
Are you trying to see if IIS is up and running, or are you trying to see
if you can connect? If you are trying to see if you can connect from a
particular machine, then that is the only way you can do it.
However, if you want to see if IIS is up (say, from an internal app),
you are better off getting the service controller on the machine it is on
and checking that. It's probably cleaner as well.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
"yqyq22" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi all,
> I would like code a program that check if my iis is up and running, I
> think a probe is a good way, but I dont have idea how to implement this
>
> probe and where begin.
> moreover I would like that this Probe must be always active.
> Is there a way to do this?
> Please, could you give me some advice? class/methods
> thanks a lot in advance!!!
>