I'm trying to activate the Document ID Service using the client object model. I keep getting the same error.
Feature with Id 'b50e3104-6812-424f-a011-cc90e6327318' is not installed in this farm, and cannot be added to this scope.
I can manually activate/deactivate the feature through the sharepoint web admin site. Any help would be appreciated. I've searched through the other forum posts on this error message but they don't apply/work for this one.
Guid DocIDService = new Guid("b50e3104-6812-424f-a011-cc90e6327318");
using (var client = new ClientContext(pathToSite))
{
client.Load(client.Site);
client.Load(client.Web);
client.ExecuteQuery();
client.Site.Features.Add(DocIDService, false, FeatureDefinitionScope.Site);
client.ExecuteQuery();
}