SPSolution.DeployLocal method (Boolean, Collection<SPWebApplication>, Boolean)

Deploys the language neutral solution to the specified web applications on the local server for trouble-shooting purposes.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void DeployLocal(
	bool globalInstallWPPackDlls,
	Collection<SPWebApplication> webApplications,
	bool force


Type: System.Boolean

Not used.

If true, then strong-named assemblies are installed in the GAC; if false, they are installed to the bin directory of the application.

Type: System.Collections.ObjectModel.Collection<SPWebApplication>

A collection of SPWebApplication objects to deploy to when there are application-specific entities in the solution.

Type: System.Boolean

If true, then a solution can be redeployed; if false, and the solution has already been deployed, an exception is raised.

Caution noteCaution

The DeployLocal and RetractLocal() methods should be used only to temporarily deploy or retract a solution from a particular server for trouble-shooting purposes. At all other times, the front-end web servers must be identically configured.

If a solution contains assemblies you can set the DeploymentTarget attribute in the solution manifest to GlobalAssemblyCache to place assemblies in the global assembly cache, or WebApplication to deploy them to the bin directory. If the attribute is not specified, assemblies are deployed to the bin directory by default.

When deploying assemblies using the object model, no warnings are issued that assemblies are being installed into the global assembly cache. (When using stsadm, the -allowgacdeploymentflag flag is required, and when using the user interface a warning is issued that assemblies are going to be installed into the global assembly cache.)

By default, no application pools are reset after deploying or retracting a solution using the object model. To reset the application pool manually, you can stop and restart the application pool for the web application to which you are deploying or retracting the solution.

To deploy a language package, see SPSolutionLanguagePack.