Partager via


“Server Error: Feature {GUID} is not installed in this farm and cannot be added to this scope”

Sometimes, you may get the above error while trying to activate the installed custom feature in your SharePoint server.

Error message says you are trying to install a feature with an invalid scope; there are certain elements that can’t be added to some scopes (Farm, Site, Web, and WebApplication). To get the installed feature, browse to

 

c:\program files\common files\ Microsoft Shared\Web server extensions\12\templates\Features.

 

To get rid of this error message, try to change the ‘Scope’ attribute to either ‘Farm’ or ‘Site’ or ‘Web’ or ‘WebApplication’.

 

Also, try to do that through STSADM.EXE.

 

· stsadm -o installfeature -filename MyCustomFeature\feature.xml

· stsadm -o activatefeature -filename MyCustomFeature\feature.xml –url https://Server/Site/

· iisreset

Eg: I am giving a sample feature.xml file which configured for Site level.

<?xml version="1.0" encoding="utf-8" ?>

<Feature Id="GUID"

Title="sample title"

Description="sample description"

Version="1.0.0.0"

Scope="Site"

xmlns="https://schemas.microsoft.com/sharepoint/">

<ElementManifests>

<ElementManifest Location="Lightup.xml" />

</ElementManifests>

</Feature>

Comments

  • Anonymous
    May 04, 2009
    I had a similar problem, but I was able to solve it in a different way. In my feature.xml and workflow.xml file I gave my Title tag a different name from the project name. This was the cause of the problem which I couldn't detect until after several trials. I later changed the Title  to the name of the project and it worked.

  • Anonymous
    July 20, 2012
    I fixed this problem as follows Open the solution in Windows explorer. Go into the folder Features Open each subfolder Open each file with .feature If the file contains the problematic GUID, delete all files with that name (.feature and *.xml) Rebuild

  • Anonymous
    July 20, 2012
    Remove the project from solution file and add it back from source control.

  • Anonymous
    April 01, 2013
    Sofia - I could kiss you!  Removing the .feature file solved my headache!

  • Anonymous
    January 08, 2014
    Removing the .feature file is generating another error at the compilation time: "The file feature1.feature is missing." so this is not  a good idea. Now i'm trying to add this feature to web before activation.

  • Anonymous
    April 21, 2015
    cffffffffffffffffffffffffffffffffffffffffffffff