Who's Online
9 visitors online now
2 guests, 7 bots, 0 members
Support my Sponsor
  • An error has occurred, which probably means the feed is down. Try again later.

Sharepoint 2010 & 2013 issue : The solution cannot be deployed. The feature “” uses the directory “” in the solution. However, it is currently installed in the farm to the directory “”. Uninstall the existing feature before you install a new version of the solution

I get this error when I try to deploy a solution from Visual Studio or user Powershell Add-SPSolution it is a very old issue related to deploying solution. Error message:

The solution cannot be deployed. The feature
‘ea6dd247-b625-4544-bcaa-b944fd2ca448’ uses the directory “feature01” in the solution. However, it is currently installed in the farm to the directory “customfeature1”. Uninstall the existing feature before you install a new version of the solution.

 

Tried to use remove-SPsolution but no luck

Remove-SPSolution -Identity “customfeature1.wsp” -force   (got below error)

Outcome :  Remove-SPSolution : Cannot find an SPSolution object with Id or Name: customfeature1.wsp

Tried below command but still no luck

Remove-SPSolutionDeploymentLock

 

Tried to run below command but still same issue

Uninstall-SPFeature “ea6dd247-b625-4544-bcaa-b944fd2ca448” -force

Outcome : Uninstall-SPFeature : Cannot find a Feature object with Path or Id:
ea6dd247-b625-4544-bcaa-b944fd2ca448 in scope Local farm.

 

Now I tried below command and got message “Operation completed successfully”. But i was still facing same issue:

stsadm -o uninstallfeature -id “ea6dd247-b625-4544-bcaa-b944fd2ca448” -force

Outcome : Operation completed successfully

 

Finally I opened solution in visual studio and remove the feature “feature01” from features folder and tried to deploy solution. This time I was able to deploy solution without any issue.

Now again I added the “Feature01” to features list and was able to deploy the solution with same feature.

 

If you face the same issue with a Timerjob installed in farm. Above steps will not help you resolve the issue. You need to follow below:

  • Navigate to Central Administration
  • Then Operations > Timer Job definitions
  • Find you timer job from the list and click to open the page
  • Copy the JobId from URL eg: http://MyServer:123/_admin/JobEdit.aspx?JobId=XXX-XXX-XXX-XX)
  • Copy to NotePad and replace the %2D characters by a dash “-“
  • Then Open Sharepoint Powershell command window and use below command:

stsadm.exe -o deleteconfigurationobject -id <ObjectGUID>

Comments are closed.