I'm trying to retract a solution. I tried both ways:
Central Administration → System Settings → Manage farm solutions → example.wsp → Retract Solution.
The status indicates "Retracting(scheduled at 4/3/2015 10:08 AM )". No errors, nothing. If I refresh the page, the status is happily back at "Deployed".
With PowerShell:
Uninstall-SPSolution example.wsp -WebApplication http://example-site/
It requests to confirm the action, which I do. No errors displayed here either. On the other hand:
Remove-SPSolution example.wsp
returns this error:
Remove-SPSolution : The solution "example.wsp" has been deployed in the farm. Please retract the deployment before removing the solution. You can also use the -override parameter to forcibly remove the solution, but you will not be able to retract the solution deployment. [...]
There is a log entry in Windows Events which seems relevant but that I don't understand:
The Execute method of job definition Microsoft.SharePoint.Administration.SPSolutionDeploymentJobDefinition (ID 77d62471-ad14-499c-8eb3-5b5f2a20b6e0) threw an exception. More information is included below.
Requested registry access is not allowed.
So:
What is happening here?
Do I run
Remove-SPSolution
with the-override
parameter, or this is a risky thing which can lead to even more problems?
I ended up calling Remove-SPSolution
with -Force
parameter, which seems to do what I need. Still, I suppose this is not what one is expected to do in production, and I'm curious to know what should be done if the same problem occurs in an actual production environment.