(SM) Support Tip: Smart Analytics SharePoint Index fails "Could not load .. 'Microsoft.IdentityModel

Smart Analytics Indexing of a SharePoint site fails with the following error stack:

MYTASK: Failed to complete synchronize: Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
MYTASK: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
MYTASK: File name: 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
MYTASK: at Autonomy.Connector.Sharepoint.MsOnlineClaimsHelper.getResponse(String stsUrl, String realm)
MYTASK: at Autonomy.Connector.Sharepoint.MsOnlineClaimsHelper.getSamlToken()
MYTASK: at Autonomy.Connector.Sharepoint.MsOnlineClaimsHelper.getCookieContainer()
MYTASK: at Autonomy.Connector.Sharepoint.MsOnlineClaimsHelper.get_CookieContainer()
MYTASK: at Autonomy.Connector.Sharepoint.ClaimsAuthenticationWrapper.setRequestCookieContainer(Object sender, WebRequestEventArgs e)
MYTASK: at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
MYTASK: at Autonomy.Connector.Sharepoint.WrappedContext.forwardExecutingWebRequestEvent(Object sender, WebRequestEventArgs eventArgs)
MYTASK: at Microsoft.SharePoint.Client.ClientRuntimeContext.OnExecutingWebRequest(WebRequestEventArgs args)
MYTASK: at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate()
MYTASK: at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()
MYTASK: at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
MYTASK: at Autonomy.Connector.Sharepoint.WrappedContext.ExecuteQuery()
MYTASK: at Autonomy.Connector.Sharepoint.Synchronize.synchronize()
MYTASK: at Autonomy.Connector.Sharepoint.SharepointConnector.Synchronize(ISynchronizeTask task)

The above error/problem will be seen when Microsoft Identity Model is not installed on the server where Smart Analytics is installed. To resolve install Microsoft Identity Model by:

1. In Microsoft Windows Control Panel > Program & Features add Microsoft Identity Model

also it's good to ensure that...

2. The user Smart Analytics is configured to use to index SharePoint has administration permissions

Tags: