Share via


SPSolution.DeployLocal method (Boolean, Boolean)

Deploys the solution to all applications on the local server for trouble-shooting purposes.

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

Syntax

'Declaration
Public Sub DeployLocal ( _
    globalInstallWPPackDlls As Boolean, _
    force As Boolean _
)
'Usage
Dim instance As SPSolution
Dim globalInstallWPPackDlls As Boolean
Dim force As Boolean

instance.DeployLocal(globalInstallWPPackDlls, _
    force)
public void DeployLocal(
    bool globalInstallWPPackDlls,
    bool force
)

Parameters

  • globalInstallWPPackDlls
    Type: System.Boolean

    Used only in the deployment of solutions containing Web Parts.

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

  • force
    Type: System.Boolean

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

Remarks

Warning

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.

See also

Reference

SPSolution class

SPSolution members

DeployLocal overload

Microsoft.SharePoint.Administration namespace