Home | Web Design and iOS Development

Removing a duplicate reference to a web part (SharePoint)

If you get this error message when re-deploying:
 
Error 1 The feature name AtoZLister already exists in SharePoint. You need to rename the feature before solution deployment can succeed. 
 
Use Gacutil /uf assemblyName from the command line on the SharePoint server to remove the previous assembly. If you receive a message about duplicate features, go to the  C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\ and remove the directory named assemblyName. Sometimes then I need to restart Visual Studio or even log off and on again (on my Windows account).