Tip: SharePoint development and IISReset

July 23, 2007

There are many unavoidable situations when you need to do an IISReset during SharePoint development (for example: feature installation/re-installation)But as IISReset is an expensive command, use the following instead:

cscript c:\windows\system32\iisapp.vbs /a “[App_Pool_Name]” /r

Note: DO NOT forget the /r at the end. Even better, create a batch file as following:

Ar.bat
cscript c:\windows\system32\iisapp.vbs /a “%1″ /r

To recycle a pool, simply run AR.BAT <pool_name>

You can hard-code the poolname if you are constantly working on a single pool and create multiple batch files for each pool.

2 Responses to “Tip: SharePoint development and IISReset”


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.