Sunday, May 27, 2012

The language-neutral solution package was not found

So there I was happily coding/debugging the latest Contoso solution when all of a sudden, while trying to deploy via VS’s CKSDev plugin, my productivity streak was broken by the following error set.

#001:
Error 2
Error occurred in deployment step 'Retract Solution': 
Access to the path 'C:\ProgramData\Mi...xml.GUID.tmp' is denied. 

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

#003:
Error 2
The language-neutral solution package was not found. 

After wasting some time looking at the logs and trying to get to the root cause of the issue, I turned to my trusty default search engine but again no luck.

Fortunately PowerShell (SharePoint 2010 Management Shell) provides us with a way of drilling into SharePoint or in this case SP issues and ripping them out, as the error occurs when trying to retract the solution.

Get all installed WSP's:
Get-SPSolution


Delete problematic one:
(Get-SPSolution solutionName.wsp).Delete()

PS. After removing the solution using the above ps1 script deployment went back to normal.

No comments:

Post a Comment