So basically here's my question, I got a SharePoint 2010 website working with some web parts but the web parts only work when I'm debugging the project, when I'm not it just says that the web part wasn't found in the gallery. Any idea what could be the problem?

  • Have you deployed your WSP with Web part?
    – Ram
    Jun 1, 2017 at 11:29
  • Hey @Ram I'm fairly new at Sharepoint, could you tell me how to do it?
    – Kita
    Jun 1, 2017 at 11:33
  • Step 1- Create WSP Step 2- Add-SPSolution -LiteralPath c:\Name_of_Wsp.wsp Step 3- Install-SPSolution -Identity Name_of_Wsp.wsp.wsp -WebApplication WebApplication -GACDeployment E.g WebApplication = pc10:8181 Then check your Web part is came in the Web part gallery, if yes then add it on page and check it. Is your web part is custom ? With CSOM or SSOM?
    – Ram
    Jun 1, 2017 at 11:36
  • 1
    Thanks for your help @Ram, but I went with P S solution and it worked out
    – Kita
    Jun 1, 2017 at 11:49

1 Answer 1


This is because, when you stop debugging the solution get retracted from webapplication.

Deploy the solution and you will find webparts in gallery.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.