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=220.127.116.11, 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 ...