Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
1.6k views
in SharePoint Server by 30 37 42

I have deployed a SharePoint 2019 Visual Web Part that is deployed and listed in the web part gallery but when trying to insert the web part to my SharePoint Page I got this error "The operation could not be completed because the item was removed from the gallery."

he operation could not be completed because the item was removed from the gallery.

How can I solve this issue, and why do I get this error "The operation could not be completed because the item was removed from the gallery." even though the web part is listed in the web part gallery?


1 Answer

1 like 0 dislike
by 159 200 385
selected by
 
Best answer

Solving: The operation could not be completed because the item was removed from the gallery.

This problem typically arises when SharePoint cannot locate the assembly needed by the web part in the GAC folder.

Despite being available in the web part gallery, you cannot add it to your page until all relevant assemblies have been correctly located in the GAC folder. otherwise, you will get this error "The operation could not be completed because the item was removed from the gallery."

Redeploying your SharePoint solutions correctly by carrying out the following will take care of this problem.

  1. Uninstall SharePoint Solution WSP
  2. Install and deploy WSP SharePoint Solution Using PowerShell

Check also SharePoint WSP Deployer

If you don’t ask, the answer is always NO!
...