SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to install sharepoint web parts with out taking sharepoint down at all?

Here is what I use for my deployment batch file:

@ECHO OFF SET PATH=%PATH%;"C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN"

ECHO Deactivating Feature... stsadm -o deactivatefeature -id ed9a2d2b-a773-4de0-a739-5dfce5f7c06e -url -force

ECHO Uninstalling Feature stsadm -o uninstallfeature -filename MyWSP_Feature1\Feature.xml -force

ECHO Retracting Solution stsadm -o retractsolution -name MyWSP.wsp -url -local

ECHO Deleting Solution stsadm -o deletesolution -name MyWSP.wsp

ECHO Adding Solution stsadm -o addsolution -filename MyWSP.wsp

ECHO Deploying Solution stsadm -o deploysolution -name MyWSP.wsp -url -allowgacdeployment -local -force

ECHO Installing Feature stsadm -o installfeature -filename MyWSP_Feature1\Feature.xml -force

ECHO Activating Feature stsadm -o activatefeature -id ed9a2d2b-a773-4de0-a739-5dfce5f7c06e -url -force



share|improve this question
Are these webparts belongs to a farm level solution or a sandbox solution? – Jony Mar 2 '12 at 3:01
Even without the IISRESET in the batch file you're going to be causing one as stsadm will update each web applications web.config file. – Ryan Mar 2 '12 at 8:04
If you want to keep developing WebParts using Farm-Solutions you can come up with a concept of generic webpart which loads custom controls on demand from GAC. In which case you won't have to restart IIS to load new controls. – Maksymilian Mulawa Mar 2 '12 at 8:10

You should use Sandbox solution, they do not require any downtime.

Sandbox solution are limited compare to farm solution but you should be able to do everything you need with it.

share|improve this answer
Consider Sandbox solution only if "minimal downtime" requirement is pretty important, as developing for Sandbox will add significant effort to your current workload. – Maksymilian Mulawa Mar 2 '12 at 8:12

This is the approach that we took at an organisation, though it requires infrastructure to achieve the no downtime.

Regards Simon

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.