When try to Edit/delete the delegation, it throws the error below:
An error occurred while attempting to load the delegations.
One or more errors occurred.
The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
Server stack trace:
at System.ServiceModel.Channels.CommunicationObject.ThrowIfFaulted()
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Quest.AA.Shared.WCF.IAFSService.GetPathDelegations(String objectPath, String afsAccessKey)
at Quest.AA.Shared.ServiceAgents.ActiveTemplateServiceAgent.GetPathDelegations(String objectPath)
at Quest.AA.ViewModels.Security.SecurityViewModel.<LoadATPermissions>b__39_0()
at System.Threading.Tasks.Task.Execute()
Also, in AFS logs we see below errors as well:
[Error] [Active Templates] Container path not found by GUID.
There is no such object on the server.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_SchemaClassName()
at Quest.AA.AFS.ASM.ActiveTemplates.ATProvider.GetContainerPathFromGUID(String guidPath, Boolean fullPath, Boolean logonAfs)
The template errors indicate that there are object GUIDs referenced in templates that are no longer in the directory. These could have been deleted objects or perhaps restored from a backup at some point.
There is no way to re-create an object's unique ID when it is restored so these could also be legit errors. Examine templates for objects that maybe have been deleted or restored from backups to explain why GUIDs would not be found in AD.
If you have removed any domains that will also cause this errors.
Try to backup the ActiveTemplatesAppliedV6.XML and then edit the XML file.
Remove the all links that shows the old domain from XML file. Save the file and try to restart the services.
It should clear out the issue.