System tray utility for starting/stopping IIS

I am not really a web developer, and find the entire process of doing web development to be really painful. One of the more painful aspects, to me, is having to constantly restart IIS (I can't use the built-in web server in VS 2005 for various reasons).

So, today I spent about 20 minutes and built a little system tray utility. When run, it puts a little globe icon in the system tray. You can right-click to start/stop/restart IIS or launch the IIS control-panel applet. There are probably others out there that do the same thing, but I was too lazy to search extensively.

Anyway, I figured, since I had built it, it might be useful to others, so here it is. IISTrayController.zip is the executable in a zip file. IISTrayControllerSource.zip is the VS 2005 project. Feel free to modify and munge as desired (Released under Creative Commons Attribution License yada yada yada).

BTW - The utility gets the status of the service via the use of a ServiceController, but uses the iisreset command-line utility to do actual starts/stops/restarts. That is because iisreset does more than just start/stop the service - it has various different approaches if stopping fails, etc. It also has the side-effect of providing a window with status, which saved me having to create one!

Technorati Tags:
AttachmentSize
IISTrayController.zip33.77 KB
IISTrayControllerSource.zip25.34 KB

Trackback URL for this post:

http://www.exotribe.com/trackback/30

Run iisreset from the tools menu

I add iisreset to the Visual Studio external tools menu. This provides quick access via a menu, and the output can be redirected to the IDE's output window. I don't have to leave the development environment to access the command.