IISREST Vs IISAPP.VBS
As part of developing in Sharepoint , you are required to do an IISReset some times,especially when deploying things to the GAC. The only problem with this approach is that it will recycle all application pools and also is a time consuming process. A better alternative is to just restart the process for the application pool for the web site that requires to pick up the change..
This can be achieved by running the following command
cscript.exe c:\windows\system32\iisapp.vbs /a "AppPoolForTheWebSite"
To list all worker processes, the PID and the AppPoolID just type in the following command
cscript.exe c:\windows\system32\iisapp.vbs
Tip: This can then be also included as a post build command in VS 2005/ VS 2008!
HTH,
Hari


Comments