System.DirectoryServices.AccountManagement not working on the server
Posted
by mlsteeves
on Stack Overflow
See other posts from Stack Overflow
or by mlsteeves
Published on 2010-03-17T15:18:19Z
Indexed on
2010/03/23
13:23 UTC
Read the original article
Hit count: 400
I am using System.DirectoryServices.AccountManagement
to find the logged-in user's AD entry. It is working great in the VS2008 WebDev server on developers machines.
But when we installed the code on the development server (windows server 2008), we get an access error.
Both the developer's machine and the development server are members of the same domain.
We have Impersonation turned on, so we are connecting to AD with the same user credentials.
What are we missing here? Why is it working on the developer's machine, but not the development server?
The actual exception that we were receiving was "An operations error occurred".
© Stack Overflow or respective owner