Monitoring a web site on the local server with a Windows Service
Posted by: Wallace B. McClure,
on 20 Jul 2006 |
View original | Bookmarked: 0 time(s)
I wrote the code below to monitor a website that was running on a local
web server. The goal was to reset the web server whenever the
WebRequest object recieved a 404 error from the web server. If a 404
error is recieved, the service runs the command specified in the
web.config file. The service operates on a timer and runs at a period
defined in the web.config file. Personally, I don't think the
application is great in that it only looks for a 404 error, but it did
solve...