I have been working on adding Active Directory functionality to an already existing ASP.NET website following this guide by Microsoft: http://support.microsoft.com/kb/326340. It's been a long process, but what I'm stuck on now is not being able to access the AccountManagement class to use certain functions such as "GetGroup()".
I can access DirectoryServices just fine, but not Account Management. When I use the following code to test the reference:
<add assembly="System.DirectoryServices, Version=184.108.40.206, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<%@ Import Namespace="System.DirectoryServices" %>
<%@ Import Namespace="System.DirectoryServices.AccountManagement" %>
Although you're importing both namespaces in the markup, you only reference
System.DirectoryServices.dll. The AccountManagement part is in a separate dll.
Add another reference to web.config:
<add assembly="System.DirectoryServices.AccountManagement ...