Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 11, 2012 01:37 PM by gww
Nov 09, 2012 11:33 PM|LINK
I'm struggling to work with System.DirectoryServices.AccountManagement. All the tutorials I read suggest that my code below should work. This is not happening in Visual Studio (so it's not a reference issue--this is happening when I run the script from IIS
7). The web site is configured to use the v4.0 framework.
<add assembly="System.DirectoryServices, Version=22.214.171.124, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add namespace="System.DirectoryServices.AccountManagement" />
In my ASP.NET file:
Dim ctx As PrincipalContext = New PrincipalContext(ContextType.Domain, "server_name", "...ldap_path...")
I'm getting the error BC30002: Type 'PrincipalContext' is not defined
Nov 11, 2012 01:37 PM|LINK
Try the resolution here.