Deploy SharePoint 2010 custom web parts

Hot Post(s) Now
Free SharePoint 2010 Web Parts
SharePoint HR
SharePoint Tutorial (See Also)


First of all I would like to mention that we still can use the stsadm in SharePoint 2010 to deploy web parts, so don’t worry if you are new in SharePoint 2010.But the proper way is to use the PowerShell instead of using SharePoint stsadm.exe, and here we will go step by step on how to deploy the custom Web Parts on SharePoint 2010.

Also for more information regarding how to create a SharePoint 2010 custom web part you can check the previous post.

PowerShell to deploy SharePoint 2010 Web Parts

    1. Open Start Menu and point to “Microsoft SharePoint 2010 Products”
    2. Click on “SharePoint 2010 Management Shell”, now you should see a screen like the one below (Click on image below to enlarge).


Deploy SharePoint 2010 web parts using PowerShell

  1. Now you are ready for the next steps (Add and install the web part)

Add the Web Part to SharePoint 2010

We assume in this tutorial that the web part name is “Sample1.wsp” and the full path for it is “c:\web parts\sample1.wsp” as well the SharePoint server name is http://sharepoint2010

Type the following command in PowerShell screen:

Add-SPSolution “c:\web parts\sample1.wsp”

Now your solution is added to your SharePoint but it is not installed yet, so what we need to do now is to install our web part so it become active and ready for using it.

Install SharePoint 2010 Web Parts

Type the following command in PowerShell screen:

Install-SPSolution –Identity Sample1.wsp –WebApplication http://sharepoint2010 –GACDeployment

Now you should be able to use your custom web part. For more information on how to add the web part to SharePoint page check this post (Create SharePoint Web Parts).
Download the Deployment Guide (Note: more guides will be added periodically)

Name

Downloads

Deploy SharePoint Web Part Guide  
Download
Deploy SharePoint Web Part Guide   Download

Hot Post(s) Now
Free SharePoint 2010 Web Parts
SharePoint HR

15 Thoughts on “Deploy SharePoint 2010 custom web parts

  1. Pingback: Creating SharePoint Web Part « RTM GROUP Q8

  2. Hello:

    I would also like to register for the free SP2010 tutorial when it is finished.

    Thanks very much!

    Christine Winsor

  3. Pingback: SharePoint 2010 Web Parts Security « RTM GROUP Q8

  4. Pingback: Create SharePoint Excel Web Part « RTM GROUP Q8

  5. Pingback: Deploy SharePoint 2010 custom web parts « Dorothy E Davis's Blog

  6. Pingback: Upgrade SharePoint 2007 to 2010 « RTM GROUP Q8

  7. Pingback: SharePoint 2010 External List « RTM GROUP Q8

  8. Pingback: Add Image to SharePoint Visual Web Part « RTM GROUP Q8

  9. Pingback: Creating SSRS Reports from two SharePoint lists or more « RTM GROUP Q8

  10. mike on March 8, 2011 at 4:01 pm said:

    Hi,

    I followed the instruction but in can't see the webpart in my sharepoint

    • Mike, you can find it under custom web parts or miscellaneous. Also make sure you deployed the web part to the right site.
      Check it on the above to areas and if you still face a problem tell me in details what you did.

  11. Pravesh Singh on December 22, 2011 at 4:52 pm said:

    Hi,

    I was reading your article and I would like to appreciate you for making it very simple and understandable. This article gives me a basic idea of SharePoint and it helps me a lot. Thanks for sharing with us. I had been reading another nice post over the internet since last night which is also having a wonderful explanation on creating and deploying webparts in sharepoint, you may also check that post by visiting this link…
    http://mindstick.com/Articles/9e1d1fe1-7e51-4d01-86ec-f1f679631a7e/?Create%20and%20Deploy%20Visual%20WebPart%20in%20SharePoint%202010

    Thanks everyone for yours wonderful post.

  12. Danielle on March 13, 2012 at 1:46 am said:

    I don’t know what’s happened, but i’ve followed all the correct method of creating a web part and I have managed to deploy it correctly using Visual Studio deploy, but I can’t seem to deploy the solution using those powershell commands. Any advice here? see my question post for more details on this issue http://social.technet.microsoft.com/Forums/nl/sharepoint2010setup/thread/576905b3-2c22-40d0-a54b-66269a5cbf60

    any help would be appreciated.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>