Search results are not being returned

Discussion in 'Active Directory' started by drm, Dec 17, 2012.

  1. drm

    drm Guest

    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"))
    ....
    Next

    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.
     
    drm, Dec 17, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Wendell Ying

    "Search results may be incomplete .... items still being indexed"

    Wendell Ying, Feb 15, 2008, in forum: Windows Vista File Management
    Replies:
    1
    Views:
    677
    R. C. White
    Feb 15, 2008
  2. SerenaK

    Number of files in search results using 'Advanced Search'

    SerenaK, May 4, 2008, in forum: Windows Vista File Management
    Replies:
    1
    Views:
    360
    SerenaK
    May 4, 2008
  3. Eric Chamberlain

    Can we limit the total number of search results returned?

    Eric Chamberlain, Apr 18, 2004, in forum: Active Directory
    Replies:
    5
    Views:
    221
    Eric Chamberlain
    Apr 21, 2004
  4. confused

    Zero results returned for uSNchanged search...

    confused, Mar 10, 2006, in forum: Active Directory
    Replies:
    5
    Views:
    461
    Joe Kaplan \(MVP - ADSI\)
    Mar 10, 2006
  5. JR Bowne
    Replies:
    1
    Views:
    187
    Corné Bogaarts
    Jan 21, 2005
Loading...

Share This Page