Rebooting the Web Server
Written by Eric Smith, Northstar Computer Systems LLC
If you're doing much development using server-side components, you'll have found that once the DLL has been used by IIS, you have to reboot the web services in order to recompile the DLL with any changes. This gets really tedious, especially if you have to do it through the Control Panel. Instead of doing it that way, you can write a script to stop and restart the relevant services. Somewhere in the system path (I like the System32 directory, personally), create a batch file with these lines in it:
@echo off
net stop iisadmin /y
net start iisadmin
net start w3svc
net start "FTP Publishing Service"
This stops the IIS Admin service, which also stops all related services (web, ftp, etc.) It then restarts the IIS Admin service, the web service, and I like to restart the FTP service, as well. Running this batch file can be done from a menu choice or from the Run prompt, and is much faster than having to use the Services applet.
Keywords: [
Uncategorized ASP Tips
]
Publication Date: 7/13/2000
|