HOME ABOUT
I AM HERE
Bookmark and Share

Deploying a wsp solution file to MOSS 2007

February 17, 2009 18:03 by Aidan

I recently wrote a post that included a .wsp file. In the comments a reader asked for more information on how to deploy this to their SharePoint environment.

I suppose it is a sign that I have been developing SharePoint solutions for too long when I start to assume that this is basic knowledge that everybody has! To try and make amends for this assumption here is a quick guide to deploying a wsp using stsadm and central admin. The first part is generic to all .wsp solutions and the second part is specific to the deployment of a web part that has been added using a SharePoint solution.

First we need to use STSADM.exe to add the .wsp file to the SharePoint farm.

To find STSADM.exe navigate to the bin folder in the 12 hive - here C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN

Open a command window and drag stsadm.exe onto it and use the following command to add the solution to the solution store.

stsadm -o addsolution -filename c:\solution.wsp

You can also use stsadm to deploy the solution but here I am going to describe the point and click method using SharePoint Central Admin which does the same thing.

Open SharePoint Central Admin and select the Operations tab.

Select Solution Management.

Click the link to the .wsp solution you just added.

Click Deploy Solution - If the solution is not globally deployed select the web applications you want to deploy to.

Click OK.

The solution is now deployed to the web applications you selected or to all web applications if it deployed globally. This is not the end of the deployment process though. If the solution contains a web part there are still a few steps to go before it will be displayed on your site. To add the web part to a page on your site do the following:

Navigate to the site collection where you want to place the web part and go to Site Settings and Site Collection Features (this assumes that the feature is scoped at the site collection level, sorry for making more assumptions that you understand scopes but that is another post and something that other people have already written plenty about if you want to find out more).

Activate the feature that contains the web part that has been deployed in the solution.

Next, go to Site Settings and Web Parts and click New.

Select the web part to add it to the wbe aprt gallery for that site collection.

The web part is now ready to be added to a page in the usual way - edit page, add web part to zone, browse to web part.

Hope that helps somebody...


Tags:
Categories: SharePoint Designer
Actions: E-mail | Permalink | Comments (6) | Comment RSSRSS comment feed

Comments

February 28. 2009 12:16

I seem to be having problems also deploying the webpart. I followed the procedure after running stsadm end deploying to the web application and activating it in that webapplication the webpart automatitcally showed up on the gallery for me. But when I add the webpart it keeps saying "Access to the path 'Witty' is denied.". At first I thought I needed to install de Twitterlib.dll but the installer already did this. Still it seems to be some sort of authentication or namespace problem?

Johan Bennink

March 7. 2009 14:27

Still having problems installing this webpart. I downloaded it 28-2-2009. Followed the guidelines, but once I place the webpart and configure my account it says: "Access to the path 'Witty' denied." I used the package from february, which incllude Twitterlib. I also downloaded the SVN source for twitty but it does not seem to include a namespace Witty so I'm wondering where I went wrong.
It feels like an authenication problem, but what about the path Witty?

Johan Bennink

April 28. 2009 09:17

I am unable to create the issue you are seeing. I have removed the solution and redeployed it but am not getting this error.
Are you using the solution found in this project cid-0ce4337df947b74a.skydrive.live.com/.../Twitter%20Web%20Part/TwitterPublicTimeline%7C5new%

Aidan

May 4. 2009 13:21

Thank you Thank you Thank you a million times over! This has been racking my brain. Thanks again!

SP Newby

May 28. 2009 02:01

Pingback from seahawk.wordpress.com

links for 2009-05-27 « Jet Grrl

seahawk.wordpress.com

July 22. 2009 03:26

Thanks, you saved my day..I had never deployed a SP solution and had spent the better part of today following instructions...with no avail, until I chanced on your site..Good Karma.. thou shalt be rewarded soon!

essbee

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading