time - Getting count of LDAP search results takes too long -


i have c# program searches users in active directory. execute search after applying propertiestoload line:

searchresultcollection adresults = adsearchname.findall(); 

this command takes less second execute. fine... fill combobox properties of results. therefore iterate through search results using line:

for (i = 0; < adresults.count; i++) 

however, takes 30 seconds program "adresults.count". when watching adresults, "function evaluation timed out" on count value. actual number of found results varies between 1 , ~30.

in end, results displayed correctly anyways. waiting 30 seconds after each search not handleable.

how can resolved? ps: getdirectoryentry not involved here in stage. @ first find out count of results.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -