Friday 10 February 2012

How to deploy & redeploy the Visual web part wsp file in Sharepoint ?

First time Deployment :

1. We want to Copy & Paste in any Server location.

2. We want to open(Run as Administrator) the Sharepoint 2010 Management Shell Command Window in the following way :-

 Start --> All Program --> MicroSoft Sharepoint 2010 products --> Sharepoint 2010 Management Shell

3. We want to copy & paste the following command in shell window(PS C:\User\Administrator>)

Add-SPSolution -LiteralPath "wsp file local location(server)"

Example: 
Add-SPSolution -LiteralPath "C:\spbackup\ABbank\ABC.wsp"

4. Then We want to copy & past the following command in the same shell window

Install-SPSolution -Identity wsp file name -WebApplication site url –GACDeployment

Example:
Install-SPSolution -Identity ABC.wsp -WebApplication http://SITENAME/ –GACDeployment

Next time Deployment :

1. We want to open the Manage Farm Solutions Window in the following way :-

 Start --> All Program --> MicroSoft Sharepoint 2010 products --> Sharepoint 2010 Central Administration --> System Settings --> Manage Farm Solutions

2. then click the Existing wsp file

3. then click the Retract Solution link then Click OK

4.  then wait for the status change from retracting to Not Deployed

5. then click the same wsp file & then click "Remove Solution"

6. then wait untile the wsp file removed

7. then do step 2

8. then click the remove solution link

9. After that follow the above First time Deployment :













No comments:

Post a Comment