Solved

How to Update a Custom Webpart using WSPBuilder and Visual Studio 2008

Posted on 2010-08-20
5
1,675 Views
Last Modified: 2012-05-10
I have a Custom Webpart I've deployed to a Sharepoint server using Visual Studio 2008 and the WSPBuilder Visual Studio Add-in.    After deploying the webpart I've added to a custom sharepoint application page and all is fine.

The Webpart is deployed as a FEATURE on the Sharepoint Server but now I'm not clear on how the UPDATE process is supposed to proceed as I modify and update the Webpart.

I tried the WSPBuilder "Upgrade" submenu but that produces an error as in the attached code snippet.

So if "Upgrade" is not the way to "Update" a custom webpart that has already been deployed then what is the correct way to do this?   Do I have to Uninstall and Reinstall the custom webpart everytime in Sharepoint or is there another way?  

 If so then what happens to the page that has the custom webpart?   Do you have to remove the old version of the webpart and re-install it?

I've done quite a bit of reading but it seems everyone covers the first time installation and there is litlte about updating the custom Sharepoint webpart.
WSPBuilder
Version: 0.9.8.1029
Created by Carsten Keutmann
GPL License 2007
Building the solution - please wait
More than one LincolnUserInfo.dll assembly found!
First found C:\Morris\DotNetProjects\LincolnUserInfo\LincolnUserInfo\bin\Debug\LincolnUserInfo.dll
Second found C:\Morris\DotNetProjects\LincolnUserInfo\LincolnUserInfo\bin\Debug\solution\LincolnUserInfo.dll
Saving the Manifest.xml file
Creating the WSP file
Cleanup
Install and deploying LincolnUserInfo.wsp
Unable to deploy solution
Inner exception(1): An object of the type Microsoft.SharePoint.Administration.SPSolution named "lincolnuserinfo.wsp" already exists under the parent Microsoft.SharePoint.Administration.SPFarm named "LPCDev_SP_Config".  Rename your object or delete the existing object.

Open in new window

0
Comment
Question by:Dahlsim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 10

Assisted Solution

by:krunal_shah
krunal_shah earned 150 total points
ID: 33491238
yes you first have to Uninstall the webpart ( you can do it from wspbuilder menu also) and then Deploy it again.
0
 

Author Comment

by:Dahlsim
ID: 33494201
Thanks for the reply.  

So about the other part of my question, what should I expect for pages that already host the webpart.  

Will they continue to work withe new version once the webpart is redeployed or I need to remove and add back the webpart to pages that were using it?
0
 

Author Comment

by:Dahlsim
ID: 33502185
I'm looking for a little more direction on the what the process is for UPDATING an Existing Custom Webpart as well as documentation on WSPBuilder Visual Studio Addin (Visual Studio 2008).  I've followed links that all seem to come up short of being actual documentation.

Is there a Sharepoint expert that could shed a little more light on the process of UPDATING an already deployed Sharepoint Custom WebPart using WSBuilder and perhaps when the menu commands like "UPGRADE" should be used?  

If there is a link to clear documentation specifically on the WSPBuilder Visual Studio Plugin that would explain the general purpose and usage of the menu items that would also be nice since all my searches so far don't lead me to such
0
 

Accepted Solution

by:
Dahlsim earned 0 total points
ID: 33504235
For anyone else who might hit this question looking for help on upgrading custom webparts in this iteration of sharepoint (MOSS 2007) here's a thread I found helpful.

http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/75507886-a5d3-4787-be93-7ad42719b4ce 

Looks like it's possible to upgrade more easily if you avoid changing the assembly version?   Still interested if any experts out there have comments but I'll be giving this a test...
0
 

Author Comment

by:Dahlsim
ID: 33508641
Tested and worked.   Easier still is to just choose the "copy binaries" option from the Solution's context menu.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question