Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Im trying to update a web part that has been distibuted across our sharepoint intranet and im coming up with an error ive never seen before. Ive googled but cant find any info. Can someone help. The error is below

Update-SPSolution : The solution cannot be deployed. The feature '54c38541-0617-4148-8cbc-7ae319ff9cdf' uses the directory "RambollUK.Intranet.SP.MetroLinksViewer_MetroLinksViewer" in the solution. However, it is currently installed in the farm to the directory "RambollUK.Intranet.SP.MetroLinksViewer_RambollUK.Intranet.SP.MetroLinksViewer". Uninstall the existing feature before you install a new version of the solution.

At line:1 char:18+ update-spsolution <<<< -identity rambolluk.intranet.sp.metrolinksviewer.wsp -literalpath C:\Rambolluk.wsps\RambollUK.Intranet.SP.MetroLinksViewer.wsp -GACDeployment + CategoryInfo: InvalidData: (Microsoft.Share...tUpdateSolution: SPCmdletUpdateSolution) [Update-SPSolution], SPException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletUpdateSolution

share|improve this question

3 Answers 3

It means that your feature is not totaly undeployed while updated. What I do is just to uninstall this feature manually using central admin. Delete wsp. If not stsadm and powershell are also good.

Try to check if there is no "Activate on deploy" flag is set on to true in visual studion for this feature. Sometimes it causes problems too: on install feature is activated cuase of this flag and you try to activate it manually...

Hope it helps,

Andrew

share|improve this answer

I suspect namespaces and Feature name has changed in the new version, and during deployment however it creates a clashing due to the Feature ID being still the original one.

Basically, if you renamed the feature between deployments, either un-install original one (if feasible as scenario - as it might crash already in-place web parts if class names have changed in the assembly too) or totally update IDs for Feature, Solution.

share|improve this answer

If this error occurs it´s because you changed or added anything into the Visual Studio solution or changed namespaces.

Change the Feature ID of all the features of the projekt will make it work!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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