Wednesday, November 9, 2011

Move .wsp files from one server to another server farm

1.Copy the .wsp file from old server Visual studio project debug folder .
2.Paste the .wsp into the new sever (like "C:\backup\file.wsp").
3.Open the "SharePoint 2010 Management shell" Run as Administrator mode.
4.Use the following code.

    Deploy Event Receiver and Master page as farm solutions
     Add-SPSolution -LiteralPath "C:\backup\file.wsp"
      Install-SPSolution -Identity file.wsp –GACDeployment


    Deploy Visual Webpart:
    Add-SPSolution -LiteralPath "C:\backup\file.wsp"
     Install-SPSolution -Identity file.wsp -WebApplication http://serverurl –GACDeployment

  Deploy Sandbox solutions. 
Add-SPUserSolution -LiteralPath  C:\backup\file.wsp  -Site  http://serverurl /sites/name
Install-SPUserSolution -Identity  file.wsp  -Site http://serverurl /sites/name
 
 Note:http://serverurl ----> http://servername ex:(http://Sharepoint)

No comments:

Post a Comment

Give Read Permission for SharePoint Add-in for Azure AD Send Mail to Office 365 Domain Group users.

Below are the Steps for Send Mail to Office 365 Domain Group or AD Group users from Provider Hosted ADD-IN. For this we needs to Give Permi...