Tuesday, March 15, 2011

The language-neutral solution package was not found

Error occurred in deployment step 'Retract Solution': The language-neutral solution package was not found

So today I was working on a Workflow in SharePoint2010 with VS2010. I had deployed and retracted several times while debugging this workflow. When all of a sudden I get this error that makes no sense at all. "The language-neutral solution package was not found" I got this if I was either deploying or retracting the solution. After some digging and playing with power shell I got it to work.

Steps:
  1. Right Click the solution and select Package
  2. Open SharePoint Power Management Shell
  3. Use the following Command: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction "SilentlyContinue"
  4. Then use : Add-SPSolution -LiteralPath "[PATH and FileName].wsp" -Confirm:$false
  5. Now go back to VS2101 and you will be able to retract the solution since you have added a solution back into SharePoint.