using (DirectoryEntry entry = new DirectoryEntry(domainName, userPrincipalName, userPrincipalPassword)) { DirectorySearcher searcher = new DirectorySearcher(entry); searcher.VirtualListView = new DirectoryVirtualListView(st, end, off); searcher.Filter = criteria; searcher.Sort = new SortOption("name", SortDirection.Ascending); searcher.PropertiesToLoad.Add("name"); searcher.PropertiesToLoad.Add("distinguishedname"); searcher.PropertiesToLoad.Add("objectGUID"); SearchResultCollection results = searcher.FindAll(); if (results.Count>0) { foreach (SearchResult result in results) { Group group = new Group(); group.name = result.Properties["name"][0].ToString(); } } }
Exception: Unhandled Exception: System.Runtime.InteropServices.COMException: The server does not support the requested critical extension.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)