I am using PowerShell script to deploy and activate a feature in the same script. Everything works fine and I can see my feature in the Sharepoint Root folder (14 hive).
I run it using Farm Admin.
My feature is Site Collection level and when I run the following line for root collection level.
Enable-SPFeature -Identity MyFeaure -Url http://br22:5646
I get the following error:
Enable-SPFeature : The Feature is not a Farm Level Feature and is not found in a Site level defined by
Content of feature.xml :
<?xml version="1.0" encoding="utf-8"?> <Feature xmlns="schemas.microsoft.com/sharepoint/"; Title="AUP Site Provisioning Feature" Description="This feature will Create Custom List(s), Views and Share Point Groups for AUP Accelerator site" Id="4e09be48-d2fc-49c6-9643-4f84aaa18806" ReceiverAssembly="Tax.Accelerators.AUP, Version=18.104.22.168, Culture=neutral, PublicKeyToken=73438e84b4622991" ReceiverClass="Tax.Accelerators.AUP.AUP_Tax_FeatureEventReceiver" Scope="Site"> <ElementManifests> <ElementManifest Location="ChangeStatusRibbonElement\Elements.xml" /> </ElementManifests> </Feature>
What am I doing wrong?