How to deploy SharePoint 2010 Solution Package – the wsp file
Posted by Ashraf on January 20, 2011
What is a Solution Package?
A solution is a deployable, reusable package that can contain a set of Features, site definitions, and assemblies that apply to sites, and that you can enable or disable individually. You can use the solution file to deploy the contents of a Web Part package, including assemblies, class resources, .dwp files, and other package components. A solution file has a .wsp file extension.
How to add the solution to the sharepoint farm and then deploy it to a particular web application is discussed below.
1. Adding solution package to the server
stsadm.exe -o addsolution -filename myEventCalendarList.wsp
OR
Use the complete location of the file, for example:
stsadm.exe -o addsolution -filename “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\Solution\myEventCalendarList.wsp”
2. Deploying the Solution
Deploy the solution using the following command:
stsadm -o deploysolution -name myEventCalendarList.wsp -url http://sp-dev/ -local -force
Here( -url) means the web application where to deploy the solution.
OR
Goto, Central Administration > System Settings >Manage farm solutions
Now click your solution from the list (for example, myEventCalendarList.wsp).
a) Now click Deploy Solution and select the web application where you want to deploy the solution (example, http://sp-dev here), Click OK when you are done.
b) And finally you will have your solution deployed status like the following.
You are done with deployment.
OPTIONAL STEP (You can do it when necessary):
Now you have to enable this feature at the website to use it. To do it follow these steps:
3. Enable the features at the website>>
Go to your Site settings> Site Collection Administration > Site collection features
And activate the feature (myEventCalendarList ,for example) that you have installed. And add that webpart to your site to test.
Hope it helps.





Rebrandable software, Article extractor & Rss solution package | Fix Registry Problems said
[...] How to deploy SharePoint 2010 Solution Package – the wsp file … [...]
harsh said
thanks a ton buddy helped a lot
How to : Deploy Solution Package (.wsp file) to Sharepoint 2010 « Episode Kehidupanku said
[...] http://ashrafhossain.wordpress.com/2011/01/20/how-to-deploy-sharepoint-2010-solution-package-the-wsp… [...]
SharePoint London Underground Tube Status Web Part « Ian Ankers's SharePoint Blog said
[...] to post how you can deploy this web part but a generic farm solution deployment guide can be found here. I’ve tested this on SharePoint 2010 only but should work fine on MOSS [...]
ram said
thanks…it helps
torontom said
everything seems to be ok and succeeded, but at the last step, I could not find the feature to enable and thus could not add the web part, no error message or anything
Dave said
Dave…
[...]How to deploy SharePoint 2010 Solution Package – the wsp file « Sharing the Point[...]…