What do you actually trying to do?
If its to just monitor a web site and see when its down, the easiest way of
doing that is by using the WebClient class to send the HTTP requests. You
will get a WebException exception when something is down.
WebException.Response will return a WebResposne object that contains the
status code of the error.
Hope this help,
Eran
===========================================
http://dotnetdebug.blogspot.com - Advanced .NET debugging blog
The place for WinDbg, SOS and friends.
Its the easy way of doing.
[quoted text, click to view] "AVL" wrote:
> hi,
>
> i need to write a script whcih monitors my web application....
>
> can anyone let me know the way to capture the error whcih i get whenever i'm
> uable to connect to the server..