Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Active Directory > Search results are not being returned

Thread Tools Display Modes

Search results are not being returned

Posts: n/a

I have a VB .net application that runs on one server that retrieves blocks of information from an AD LDS directory on Windows Server 2008 SP2 that freezes. There is a loop that controls what blocks to retrieve. I have added logging to my code to isolate the problem (see below) as well as on the AD LDS server. The process executes the FindAll command but the results arenever returned. I can see an event log on the AD LDS with ID 1644 statingthat entries are returned but the "processing result" log message is neverwritten. AutoFlush was turned on for the LogWriter. Any suggestions on what could be causing this or on how to determine what is happening?

_myDateTime = DateTime.Now
LogWriter.WriteRecord("Launching query " & ds.Filter & " at " &
Format(_myDateTime, "MM/dd/yyyy HH:mm:ss"))
results = ds.FindAll()
Dim loopCount = 0
_myDateTime = DateTime.Now
LogWriter.WriteRecord("Retrieving results for - " & ds.Filter & " at " &
Format(_myDateTime, "MM/dd/yyyy HH:mm:ss"))
For Each result As SearchResult In results
loopCount += 1
_myDateTime = DateTime.Now
LogWriter.WriteRecord("Processing result " & loopCount & " at " &
Format(_myDateTime, "MM/dd/yyyy HH:mm:ss"))

Note: This does not happen everytime. If the hung process is killed and the application restarted, it usually works.

FYI. The directory is populated with information from a database. This application extracts the data from the directory to be compared to the data inthe database to ensure that the two are in sync. If there is a better wayto extract the data, please let me know. I tried csvde but it did not work due to the volume of data.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of files in search results using 'Advanced Search' SerenaK Windows Vista File Management 1 05-04-2008 12:33 AM
"Search results may be incomplete .... items still being indexed" Wendell Ying Windows Vista File Management 1 02-15-2008 09:52 PM
Zero results returned for uSNchanged search... confused Active Directory 5 03-10-2006 10:01 PM
Problem with total number of results returned JR Bowne Scripting 1 01-21-2005 03:53 PM
Can we limit the total number of search results returned? Eric Chamberlain Active Directory 5 04-21-2004 02:44 AM