Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Activating DocmentID Service from Client Object Model

$
0
0

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();
}


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>