Hi,
We are using the BDC administration object model of SharePoint 2013 to create BDC models fort he BCS services. After creating the AdministrationMetadataCatalog and retrieving the Model instance of an BDC model, we are calling the GetAccessControlList method. This is working fine, but on one of our customers servers we are encountering the following exeception:
System.InvalidOperationException: The security token request cannot be completed. ---> System.InvalidOperationException: The security token request cannot be completed.
at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForServiceContext(Uri contextUri)
at Microsoft.SharePoint.SPChannelFactoryOperations.InternalCreateChannelActingAsLoggedOnUser[TChannel](ChannelFactory`1 factory, EndpointAddress address, Uri via)
at Microsoft.SharePoint.BusinessData.SharedService.BdcServiceApplicationProxy.GetChannel(Uri address, Boolean isChannelThatDelegatesIdentity)
at Microsoft.SharePoint.BusinessData.SharedService.BdcServiceApplicationProxy.Execute[T](String operationName, UInt32 maxRunningTime, ExecuteDelegate`1 operation, Boolean performCanaryCheck, Boolean isChannelThatDelegatesIdentity)
at Microsoft.SharePoint.BusinessData.SharedService.BdcServiceApplicationProxy.GetAccessControlEntries(MetadataObjectStruct metadataObjectStruct, String settingId, Boolean fallback)
at Microsoft.SharePoint.BusinessData.SharedService.BusinessDataService.<>c__DisplayClass24.<GetAccessControlEntries>b__23(BdcServiceApplicationProxy serviceApplication)
at Microsoft.SharePoint.BusinessData.SharedService.BusinessDataService.Execute[T](ExecuteDelegate`1 operation)
--- End of inner exception stack trace ---
at Microsoft.SharePoint.BusinessData.Administration.Client.AdminWebServiceProxy.Execute[T](ExecuteDelegate`1 operation, String formDigestValue)
at Microsoft.Office.BusinessData.Infrastructure.BdcAccessControlList..ctor(MetadataObjectStruct metadataObjectStruct, String settingId, Boolean fallback, AdminWebServiceProxy serviceProxy)
at Microsoft.SharePoint.BusinessData.Administration.Client.IndividuallySecurableMetadataObject.GetAccessControlList(String settingId, Boolean fallback)
Does anybody have an idea what’s causing this error?
Thank you in advance for your help.