Wednesday, June 1, 2011

How to deploy webpart in Sharepoint 2010

Step by step procedure to install and deploy webpart in Sharepoint 2010

1. Goto Start -> All programs->Microsoft Sharepoint 2010 products - > Sharepoint 2010 Management Shell.
2. Type the following command for adding the solution

  PS C:\Users\Administrator> stssadm -o addsolution -filename D:\hellowroldWebpart.wsp
  Operation completed successfully.    

3.Type the following for deploying the solution

  PS C:\Users\Administrator> stsadm -o deploysolution -name helloworldWebpart.wsp -local -allowGacDeployment -force -url http://servername:40033/

4.Goto Start ->All programs ->Microsoft Sharepoint 2010 products --> Sharepoint 2010 Central Administration

5.Then goto Site actions -> site settings -> site collection features and active the deployed webpart in it.

No comments:

Post a Comment