I use IIS 5.1 for development. Why? Well, I don’t know so much these days. It used to be because I planned to do some .NET development that never panned out. Anyhow, I use IIS.
What ticks me off about IIS is how from time to time it flakes out. When it does this all you can do is restart the service. But, approximately 229% of the time I get an error saying something akin to this:
Could not stop the IIS Admin service on local computer
Error 1053: The service did not respond to the start or control request in a timely fashion
Usually when this happens I’m forced to reboot.
So, today, after a little creative googling I found this link. This page describes the iisreset command! It turns out that restarting IIS when it craps out like this is as simple as opening a command prompt and typing this command:
iisreset localhost /restart
Of course, you’ll need to use the correct machine name in place of localhost.
Running this program will result in this output:
Attempting stop... Internet services successfully stopped Attempting start... Internet services successfully restarted
After it’s done (which seems to take less time than using the services control panel to restart the services) IIS will work correctly again (till the next time it goes belly up).