C# : Error while accessing Active Directory
- by Mohsan
hi. i am facing some problems in accessing Active Directory from my winform app. what I want is to create a user and query user from Active Directory.
here is code snippet for find user
public bool FindUser(string username)
{
using (PrincipalContext context = new PrincipalContext(ContextType.Domain, this.domainName,…