I'm trying to use the PrincipalContext class in .net 4.0 but in my using statement,
using System.DirectoryServices.AccountManagement;
is not resolving and therefore PrincipalContext is not either. Do you have any idea why these wouldn't work?
Error 1 The type or namespace name 'AccountManagement' does not exist in the namespace 'System.DirectoryServices' (are you missing an assembly reference?)
NEVERMIND....You have to add a reference to System.DirectoryServices.AccountManagement.
rkeslar
Participant
853 Points
900 Posts
Cannot Resolve Symbol PrincipalContext
May 07, 2012 04:09 PM|LINK
I'm trying to use the PrincipalContext class in .net 4.0 but in my using statement,
using System.DirectoryServices.AccountManagement;
is not resolving and therefore PrincipalContext is not either. Do you have any idea why these wouldn't work?
Error 1 The type or namespace name 'AccountManagement' does not exist in the namespace 'System.DirectoryServices' (are you missing an assembly reference?)
NEVERMIND....You have to add a reference to System.DirectoryServices.AccountManagement.
Thanks
bbcompent1
All-Star
32974 Points
8500 Posts
Moderator
Re: Cannot Resolve Symbol PrincipalContext
May 07, 2012 04:22 PM|LINK
Glad you figured it out.