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...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: .NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1960 | Hits: 128

Similar Posts

  • WcfTestClient with Windows Azure more
  • ASP.NET 4 Web Server Here Shell Extension more
  • Silverlight Live Streaming service update more
  • Adding users to a TFS project when youre not on the domain more
  • Web Deployment Tool released to web (RTW) more
  • Web Deployment Tool has gone RTW more
  • Exporting SWF & FLV format reports in SSRS 2005 and 2008 more
  • GiveCamps Get a new Sponsor more
  • Announcing the WebsiteSpark Program more
  • Take Two: A jQuery WCF/ASMX ServiceProxy Client more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD