Recycle the Application Pool for SharePoint

Whenever you update a web part (or any solution) to the latest version, you must either perform an IISRESET or recycle the application pool for the SharePoint web application. If you do not do this, you may see the new version of the web part or solution, but the new shared object library has not been loaded into memory and you may observe very confusing behaviour.

On a development server it may be permissable to perform an IISRESET (simply enter the command iisreset at a command prompt on the SharePoint server, assuming you are logged in as Administrator). However, this will cause SharePoint to appear to freeze for a few moments, and can cause undue alarm amongst users - if performing an IISRESET on a production server it is usual to schedule it for the middle of the night.

A better solution is to recycle the application pool. For a default single server install of SharePoint, this is achieved as follows:
  1. Open IIS Manager. (Start --> Administrative Tools --> Internet Information Services (IIS) Manager)
  2. Expand the Server node.
  3. Expand the Application Pools folder.
  4. Right-click on the application pool that you want to restart (in my case it’s called “SharePoint – 80”) and then select Stop (or select it and use the square “stop” button).
  5. Right-click on the application pool again and then select Start (or click the triangular start button).

If you have a more complex situation, or the application pools have been renamed, you can identify the application pool to recycle as follows (although it should be harmless just to recycle them all):-

First of all you need to establish which web application you need. Below the Application Pools is a list of Web Sites:


When you select a web site, right click and select "Properties" you will see a box for the "TCP Port". Assuming your users access SharePoint on port 80 of this server (i.e. they don't specify the server by using a port number, such as http://MySharePointServer:666/default.aspx where 666 would be the port number - so they use the default, which is port 80) then you simply look at each in turn until you find the web site that is on port 80.


You may have several web sites running on port 80 (using managed paths). So, for each web site running on Port 80, go to the “Home Directory” tab. The last item on the page tells you which application pool it uses, as in the following screenshot:


This is the name of the application pool(s) that you will want to recycle. Simply select, stop and start (or right mouse click and select "recycle") as follows:


Last edited Nov 26, 2010 at 2:50 AM by roncresswell, version 2


No comments yet.