title: Failing to activate a feature using COM in SharePoint 2010
body: <pre><code>            Guid featureId = new Guid(&quot;0af5989a-3aea-4519-8ab0-85d91abe39ff&quot;);
  
              ClientContext clientContext = new ClientContext(&quot;http://mysite:786/&quot;);
  
              Site clientSite = clientContext.Site;
              clientContext.Load(clientSite);
  
              FeatureCollection clientSiteFeatures = clientSite.Features;
              clientContext.Load(clientSiteFeatures);
              clientContext.ExecuteQuery();
  
              // Activate the feature
              clientSite.Features.Add(featureId, true, FeatureDefinitionScope.Site);
              //clientSiteFeatures.Remove(featureId, false); 
              clientContext.ExecuteQuery();
              MessageBox.Show(&quot;Success&quot;);
  </code></pre>
  <blockquote>
  <p>When I am running this code, I am getting the exception: Feature with
  id &quot;0af5989a-3aea-4519-8ab0-85d91abe39ff&quot; isn't installed in farm and
  can't be added to scope.</p>
  <p>I got this feature id from the link <a href="http://social.technet.microsoft.com/wiki/contents/articles/7695.list-of-sharepoint-2010-features-id-displayname-and-scopes.aspx" rel="nofollow noreferrer">http://social.technet.microsoft.com/wiki/contents/articles/7695.list-of-sharepoint-2010-features-id-displayname-and-scopes.aspx</a></p>
  <p>Please guide.</p>
  <p>Regards,
  Vikrant Raj Behal</p>
  </blockquote>