"An operations error occurred" from DirectoryServices

1

I'm trying to use System.DirectoryServices to query an Active Directory server, using LDAP. My code can (apparently) connect and authenticate, but when my first DirectorySearcher FindAll() method is called, I only get:

[DirectoryServicesCOMException (0x80072020): An operations error occurred.]

Picking apart the exception in the debugger has been remarkably unproductive. It seems to have pretty much no other information associated with it. The online docs aren't helping me, either.

I'm sure it's probably something I'm doing wrong, but what? Is there any way to tell what kind of problem this is?

c#
.net
active-directory
ldap
directoryservices
asked on Stack Overflow Feb 24, 2011 by Ken

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0