Home > SharePoint > Feature … is not installed in this farm, and can not be added to this scope

Feature … is not installed in this farm, and can not be added to this scope

2011/10/09

I had developed an event handler for Moss 2007 , using Visual Studio 2008; at a certain point i have made the mistake of change the namespace in the C# code without before retracting the solution.

This is a possible cause of the above error, because the same message can occurs even in other scenarios.

So trying to publish the solution i got:


The solution is to use stsadm , using this sequence applied in the sample to the name of my solution, evh_CorporateIdentity:

stsadm.exe -o retractsolution -name evh_CorporateIdentity.wsp -immediate 
stsadm.exe -o execadmsvcjobs
stsadm.exe –o addsolution –filename evh_CorporateIdentity.wsp
stsadm.exe –o deploysolution –name evh_CorporateIdentity.wsp -allowgacdeployment -immediate
stsadm.exe -o execadmsvcjobs
Advertisements
Categories: SharePoint
%d bloggers like this: