DirectorySearcher.FindAll()

Discussion in 'ASP .Net' started by =?Utf-8?B?QW5kcmV3MTI0?=, Jul 11, 2004.

  1. Can anyone tell me why the code below returnes oX80005000 Unknown Error on W2K Advanced Server but doesn't work on W2K SBS:

    DirectoryEntry tmproot = new DirectoryEntry(ADPrefix + member.Replace("/","\\/"));
    DirectorySearcher tmpsrch = new DirectorySearcher(tmproot);
    tmpsrch.PropertiesToLoad.Add("objectclass");
    tmpsrch.PropertiesToLoad.Add("distinguishedName");
    tmpsrch.PropertiesToLoad.Add("cn");
    tmpsrch.PropertiesToLoad.Add("sAMAccountName");
    tmpsrch.PropertiesToLoad.Add("DisplayName");
    SearchResultCollection tmpresult = tmpsrch.FindAll(); (unknown error)
     
    =?Utf-8?B?QW5kcmV3MTI0?=, Jul 11, 2004
    #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. cameron

    DirectorySearcher & sorting

    cameron, Jul 4, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    4,786
    Yan-Hong Huang[MSFT]
    Jul 7, 2003
  2. dave
    Replies:
    0
    Views:
    784
  3. Jay
    Replies:
    1
    Views:
    19,284
  4. Roger Bavaud

    DirectorySearcher Filter Exchange Server

    Roger Bavaud, Nov 3, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    616
    =?Utf-8?B?UGF0cmljay5PLklnZQ==?=
    Nov 5, 2004
  5. cameron

    DirectorySearcher first access speed

    cameron, Nov 24, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    614
    Rhett Gong [MSFT]
    Nov 26, 2004
Loading...

Share This Page