Well some of this depends on your environment. It is easy to execute a process from ASP.NET if you have control of your environment and all of that. So you could run some custom program or script, etc. Some things to consider are what happens if IIS fails to restart (if you even do that) or some error occurs; what should happen? And worse, what if the site just fails to come up but your script doesn't receive any kind of error - do you need a nanny process to force something to occur, etc. Also, you want to keep in mind the security around allowing the update to occur. Basically, it depends. :)
↧