I am unsure how to deploy a SharePoint project solution to a SharePoint site. I thought it was by deploying to the SharePoint server, but is that not enough? Do I deploy to SP and Web server?

Note: I am using Visual Studio 2010, on SharePoint server 2010

Note 2: The issue I'm having is that, when I tried deploying my solution file, I can only add one of three webparts....and it's on the Central Administration app. So how do I activate the webpart feature for the SharePoint site such that I can add a webpart to any page on the site? I would find it funny if it's only to a single page.

Note 3: I've managed to deploy it to the correct app....but when I try to retract the solution and install it again, it says it already exists.

  • You need to deploy only to sharepoint server? what is the issue you are getting??
    – Aanchal
    Sep 3, 2014 at 16:01
  • The issue is that, after trying to deploy, I can only add one of three webparts I've developed and only when editing the Central Administration page on the server. It doesn't recognize the site URL of the page I want to add webparts to.
    – Chris
    Sep 3, 2014 at 16:37

1 Answer 1


You need to Package/Publish (not sure what version of VS you are using) in Visual Studio. This creates a WSP package that can be added to the farm via Powershell on one of the SharePoint Servers. After it is added, it can be installed, again via Powershell.

After it is installed, the feature can be activated on your site. Once activated, you can then add your web part to a web part page. You can also write feature activation event receiver code to do that automatically for you.

  • I'll clarify that I am using VS 2010. One of the issues I have when trying to deploy after taking the steps that you've mentioned is that there is only one webpart when I have three in the Feature file. So shouldn't I be seeing three webparts?
    – Chris
    Sep 3, 2014 at 16:36
  • If you double click on Package, are all 3 of your web parts listed? Sep 3, 2014 at 16:44
  • package.package in VS? Yep, all three are listed. Same in Feature.feature, and the .cab file of the .wsp solution.
    – Chris
    Sep 3, 2014 at 17:01
  • If you check the Central Admin, System Settings, Manage farm solutions, is your feature deployed to all web applications? it sounds as if the feature only activated on the Central Admin web app. Sep 3, 2014 at 17:05
  • Yes, I am deploying to all web apps. Which makes this all the more puzzling.
    – Chris
    Sep 3, 2014 at 17:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.