Although IISReset ships with IIS5+ it shouldn't be used for servers with a lot of web sites, as it has a time out of 60 seconds and if stop/start hasn't done by then it kills the process with the potential of corrupting the metabase (there's an MS knowledge base article about it somewhere, I've attached a related one [1] but can't find the original), so if a generic task is going to be written, please don't exec IISReset.
Duncan [1] http://support.microsoft.com/default.aspx?scid=kb;en-us;286196 ----- Original Message ----- From: "Nick Varacalli" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 28, 2003 3:11 PM Subject: RE: [nant-dev] IIS Task Some random musings on this task: We would execute this task a lot. Notably, we need to be able to stop IIS on remote machines as part of our build (don't ask). To that effect, we use IISReset.exe instead of net stop. <iis action="stop" computer="foo" /> The main problem we have with net stop is that it returns non-zero error codes in cases like: Cannot stop the service, it is already stopped. Cannot start the service, it is already started. Nick Varacalli > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 28, 2003 04:59 > To: [EMAIL PROTECTED] > Subject: [nant-dev] IIS Task > Importance: High > > Dear All, > > > First of all this might already be present .So if anyone is already > working on the task ,please ignore this. > > > Aim > > I was thinking of writing a IIS Task. The functionality of the task is to > start and a stop the IIS . This task will come in handy while building > since many a times the IIS holds the executables in memory . > > > IIS Task > > The IIS Task will execute ,these commands > > net start "world wide web publishing service" > net stop "world wide web publishing service" > > so actually speaking the "net" task functionality is being used . My > confusion is should I simply make an IIS Task > > <iis action="start"/> > <iis action="stop"/> > > or should make it more generic > > <net name="world wide web publishing service" > action="start"> > <net name="world wide web publishing service" > action="stop"> > > > Please let me know what you guys think . > > > Thanks & Warm Regards, > > Soumitra Bajpai > Microsoft Technologies, > Systems Analyst > LG Software > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers