Posted on: 10/16/2012 2:52:09 AM | Views : 418

I have started an application where I want to pull the AD heirarchy and build an org chart.  I keep running into an error, Specified Method not supported , when executing this code.
protected void FillObjects() { string user = Session["User"].ToString(); Principal userP; PrincipalSearchResult<Principal> group; using (PrincipalContext adPrincipalContext = new PrincipalContext(ContextType.Domain)) { Error --> userP = Principal.FindByIdentity(adPrincipalContext, IdentityType.SamAccountName, user); group = userP.GetGroups(); if (userP != null) { Session["UserP"] = userP; Session["Groups"] = group; } } } This works fine the first time I run it but if I try to run again without stopping the Development Server it b ...

Go to the complete details ...