Yes this is the only code, some lines above i define the filter which i then give to the mysearcher. The COM Exception comes from the Message Box, if i comment it out it comes from the "foreach" line. The COM exception exactly says:"Das Zeitlimit für diese Anforderung wurde überschritten." which means The timelimit for this operation exceeded.
I've also captured this screenshot. http://imgur.com/kVSWp
this occurs if...
User Profile
Collapse
-
I am not quit sure, but if i reduce the size limit to about 200~250 the code works.(takes some time but complete the foreach) if i change the value over 260 it crashes every time.
I've tested your point(simply split my error query in 5 parts) and every single part with about 50 results works. Do you have any other idea what could be the problem? I also noticed that if i debug step by step and i click at the "+" at results right...Leave a comment:
-
Why does it take much time to open a searchresultcollection?
Hello I am trying to write a litte program which let users search für other users with an LDAP connection.
It works fine with some search operations but it takes a very long time to "open" the searchresult object, it produces an COMException with some querys, others work fine. i have no idea why this takes this much time. if i debug step by step the .FindAll() works fine but the message box takes about 3 seconds or produces an exception....
No activity results to display
Show More
Leave a comment: