Webpart broken after solution redeploy

deploymentsharepoint-2010web-parts

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!

Best Answer

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.

Related Topic