Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webpart broken after solution redeploy

I have deployed and then redeployed a .wsp on a Sharepoint 2010 server (the solution was developed on another 2010 server). The solution contains 2 web parts.

After retracting and removing the old solution, I added and deployed the same solution again, with no errors.

Afterwards, I deactivated and reactivated the feature installed through my .wsp file.

The problem is that whenever I try to add one of those 2 web parts to a page, I get an error saying "The operation could not be completed because the item was removed from the gallery".

Do you have any ideea what's happening? Anu help is greatly appreciated!

like image 210
Diana Avatar asked Oct 06 '10 18:10

Diana


2 Answers

Usually this happens if the web part gets orphaned in the web part gallery. Try Deactivating your solution and Retract and Uninstall your wsp. Then check the Web Part Gallery for the site collection. If you still see your web parts there then manually delete them.

Then you can Add and Deploy your wsp and activate your solution. The web parts should then be available in the web part gallery and be able to be added to your pages.

like image 51
Peter Jacoby Avatar answered Oct 04 '22 18:10

Peter Jacoby


I came across a more simple solution which worked well for me.

Go to the webparts gallery at Site Settings/Galleries/Web parts and delete problematic webpart entry. Then deactivate and reactivate the wsp which contains that webpart and everything should work fine. No need for redeployment or uninstalling.

Source

like image 45
Zax Avatar answered Oct 04 '22 16:10

Zax