Thursday, September 24, 2009

How to refresh application pool without resetting iis

This is the common scenario in sharepoint development. Suppose if you modify site definition file(xml) or you need to deploy the latest dll in GAC, then iisreset is must to get the changes.
But the thing is if the deployment is in production server then your customer may raise a issue. If server contains more than one application then its bad idea to give iisreset. Instead of that you can reset the application pool where your application is running.
For this we require the application pool id. How to get the application pool id?
Type the below line of text in command prompt.
C:\windows\System32\iisapp
This will display all the application pool id. Easily you will come to know about your app pool Id.
Next step is to refresh the application pools.
Type the following line in command prompt, that will refresh the app pool.
C:\windows\System32\iisapp.vbs /a “ApplicationName” /r
Another way is create one batch file and paste the following line of code.
C:\windows\System32\iisapp.vbs /a “ApplicationName” /r
pause

No comments:

Post a Comment