Defender self-service error

Hello,

We encountered an issue in one of two defender servers

when user is trying to access the token registration, he got an issue in self-service states that self-service portal not configures properly.

Web management logs: 

ERROR 2025-05-19 16:02:49,002 30297ms [47] HomeController LoginInternal - Failed to log in service account, user account will be used for impersonation
ERROR 2025-05-19 16:02:49,329 30623ms [51] UserRepository GetByNetBios - UserRepository::GetByNetBios objectsid Error
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: The network path was not found.

at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.PropertyValueCollection.PopulateList()
at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
at lambda_method(Closure )
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at BdsSoft.DirectoryServices.Linq.DirectoryQuery`1.GetCondition(BinaryExpression e)
at BdsSoft.DirectoryServices.Linq.DirectoryQuery`1.ParsePredicate(Expression e, StringBuilder sb)
at BdsSoft.DirectoryServices.Linq.DirectoryQuery`1.BuildPredicate(LambdaExpression q)
at BdsSoft.DirectoryServices.Linq.DirectoryQuery`1.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Defender.Models.UserRepository.GetByNetBios(String nb)
ERROR 2025-05-19 16:03:39,181 80475ms [34] nStorageLocationWriter Save - Error:
ERROR 2025-05-19 16:03:39,184 80478ms [34] elfRegConfigController kenStorageLocation - Token Storage Location failed: Error:The System Service Account user could not be logged in or has not been configured.

please note below: 

service account has full permissions

server is connected to active directory

service account has full delegation and no login restriction applied