Thread: ASP LDAP Error

  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2009
    Rep Power

    ASP LDAP Error

    Hi Guys, I have written a new front end to AD for our HR staff to be able to use. All of this works locally on my PC, but the second I put it up onto the IIS6 server I start getting the following error:

    Exception Details: System.Runtime.InteropServices.COMException: An operations error occurred.

    Source Error:

    Line 45: objSearcher.Filter = "(objectClass=user)"
    Line 46: 'objSearcher.Filter = "sAMAccountName=kredford"
    Line 47: objResults = objSearcher.FindAll()
    Line 48: 'Loops through all users in the objResults collection.
    Line 49: For Each objResult In objResults

    Source File: D:\wwwroot\ActiveDirectory\Default.aspx.vb Line: 47

    Stack Trace:

    [COMException (0x80072020): An operations error occurred.
    System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +377678
    System.DirectoryServices.DirectoryEntry.Bind() +36
    System.DirectoryServices.DirectoryEntry.get_AdsObject() +31
    System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) +78
    System.DirectoryServices.DirectorySearcher.FindAll() +9
    _Default.Page_Load(Object sender, EventArgs e) in D:\wwwroot\ActiveDirectory\Default.aspx.vb:47
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    System.Web.UI.Control.LoadRecursive() +50
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

    Has anyone seen this before?
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Rep Power
    Did you get this resolved? This forum is mostly for classic asp, if you still need help you might try the NET forum.
    Doug G
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo