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.
Octavient
0 Points
1 Post
VB.NET: Type 'System.DirectoryServices.AccountManagement.PrincipalContext' is not defined
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.
In web.config:
and
In my ASP.NET file:
I'm getting the error BC30002: Type 'PrincipalContext' is not defined
Why?
gww
Contributor
2143 Points
458 Posts
Re: VB.NET: Type 'System.DirectoryServices.AccountManagement.PrincipalContext' is not defined
Nov 11, 2012 01:37 PM|LINK
Try the resolution here. http://stackoverflow.com/questions/85091/error-bc30002-type-xxx-is-not-defined