M
Maqsood Ahmed
Hello,
Environment Details:
Development:
VS 2005 Team System
SQL Server 2005
Windows XP
Production:
Windows Server 2003 (Web Server)
Windows Server 2003 (Active Directory Server)
I am facing problems while getting All users from the Active Directory,
using System.DirectoryServices namespace.
I am trying get all the users in the AD from my web application (I want
to display all the users). It works fine at the development terminal
(because the user is logged on to AD), but when I deploy the application
and try to access the list of users from there, following exception is
being thrown.
System.Runtime.InteropServices.COMException (0x80072020): An operations
error occurred.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean
findMoreThanOne)
at System.DirectoryServices.DirectorySearcher.FindAll()
I have also found out that the current user is an authenticated AD user.
Please also note that the IIS server is not the AD server.
Any suggestions please. Thanks in advance.
Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
Environment Details:
Development:
VS 2005 Team System
SQL Server 2005
Windows XP
Production:
Windows Server 2003 (Web Server)
Windows Server 2003 (Active Directory Server)
I am facing problems while getting All users from the Active Directory,
using System.DirectoryServices namespace.
I am trying get all the users in the AD from my web application (I want
to display all the users). It works fine at the development terminal
(because the user is logged on to AD), but when I deploy the application
and try to access the list of users from there, following exception is
being thrown.
System.Runtime.InteropServices.COMException (0x80072020): An operations
error occurred.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean
findMoreThanOne)
at System.DirectoryServices.DirectorySearcher.FindAll()
I have also found out that the current user is an authenticated AD user.
Please also note that the IIS server is not the AD server.
Any suggestions please. Thanks in advance.
Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net