ActiveDirectory issue - DirectoryServicesCOMException. there is no such object on the server RRS feed

  • Question

  • User-2146620081 posted


    I have used windows authentication in my application and used Active Diretory class to check the user identity. I don't have any issues while executing application visual studion local server. But after dpeloyed into IIS, I am getting

    "System.DirectoryServices.DirectoryServicesCOMException. there is no such object on the server."

    Please let me know what could be the reason for getting the above error

    Tuesday, April 8, 2014 3:58 AM


  • User1508394307 posted

    This error typically means that you are trying to reference an LDAP path that is invalid or you used wrong credentials to access it. Since it works on local machine and does not work on a server it might be that application pool account is the issue. Also it might be that domain controller (DC) is different and was not synced, etc...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 8, 2014 4:27 AM