Sharing the Point

Office 365, SharePoint, Project Server – Consulting & Support

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”

Deploy solution package

Deploy solution package command

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).

Manage farm solutions

Manage farm solutions

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.

select the web application

Click Deploy Solution

Select web application

Select web application where you want to deploy

b)  And finally you will have your solution deployed status like the following.

solution deployment status

solution deployment status

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.

Advertisement

7 Responses to “How to deploy SharePoint 2010 Solution Package – the wsp file”

  1. [...] How to deploy SharePoint 2010 Solution Package – the wsp file … [...]

  2. harsh said

    thanks a ton buddy helped a lot

  3. [...] http://ashrafhossain.wordpress.com/2011/01/20/how-to-deploy-sharepoint-2010-solution-package-the-wsp… [...]

  4. [...] 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 [...]

  5. ram said

    thanks…it helps

  6. 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

  7. Dave said

    Dave…

    [...]How to deploy SharePoint 2010 Solution Package – the wsp file « Sharing the Point[...]…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 44 other followers