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 http://mysite.contoso.com/sites/Properties -force

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

ECHO Retracting Solution stsadm -o retractsolution -name MyWSP.wsp -url http://mysite.contoso.com/sites/Properties -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 http://mysite.contoso.com/sites/Properties -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 http://mysite.contoso.com/sites/Properties -force



  • Are these webparts belongs to a farm level solution or a sandbox solution?
    – Jony
    Mar 2, 2012 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, 2012 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. Mar 2, 2012 at 8:10

2 Answers 2


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.

  • 2
    Consider Sandbox solution only if "minimal downtime" requirement is pretty important, as developing for Sandbox will add significant effort to your current workload. Mar 2, 2012 at 8:12

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


Regards Simon

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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