How to remove a custom web part from an SP2010 application the proper way?

Answered How to remove a custom web part from an SP2010 application the proper way?

  • 29 มีนาคม 2553 19:31
     
     
    Whenever I create custom web parts, I can easily deploy by selecting the deploy option (woohoo). The weird thing is that when I try to remove a custom web part (by retracting and then cleaning) sometimes the webpart is removed and sometimes it isn't. If I go to Site Collection Features it doesn't show up but if I go to the Custom webpart bucket when adding webparts it still shows up. What is the best way of removing/retracting a webpart/feature from a SP2010 site?

ตอบทั้งหมด

  • 29 มีนาคม 2553 20:53
     
     คำตอบ
    The problem is that retracting the WSP doesn't always delete the .webpart file in the gallery.  After retracting the web part solution through visual studio you have to delete the webpart file from each web part gallery.  Removing this file will remove it from the custom web parts list.  Manual deletion is the only way to insure that the file is deleted.
    Paul Stork SharePoint Server MVP
    • ทำเครื่องหมายเป็นคำตอบโดย josh6847 19 เมษายน 2553 17:20
    •  
  • 29 มีนาคม 2553 20:53
     
     คำตอบที่เสนอ
    The problem is that retracting the WSP doesn't always delete the .webpart file in the gallery.  After retracting the web part solution through visual studio you have to delete the webpart file from each web part gallery.  Removing this file will remove it from the custom web parts list.  Manual deletion is the only way to insure that the file is deleted.
    Paul Stork SharePoint Server MVP
  • 29 มีนาคม 2553 21:05
     
     
    Thank you. Problem solved.