Hello V.Sathishkumar,
Thank you for posting in Q&A forum.
- Check for Recent Changes: Since this issue started recently, check if there have been any changes in the domain configuration, such as updates, policy changes, or permission modifications.
- Use Logging: Implement logging to capture more detailed error information. This can help identify the exact cause of the issue.
- Test with Different Context Types: Try using different context types or specifying different containers to see if the issue persists.
PrincipalContext principalContext = new PrincipalContext(ContextType.Domain, "yourDomain", "OU=Users,DC=yourDomain,DC=com");
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.