DomainController() is inaccessible due to its protection level??
-
Hi Guys, i'm trying to use the DomainController class to access the metadata of an OU, but i keep getting: "'System.DirectoryServices.ActiveDirectory.DomainController.DomainController()' is inaccessible due to its protection level" any ideas on how i can change this access level? i can access the classes with the DirectoryServices namespace, it just seems to be the ActiveDirectory namespace in struggling with! sorry if this is dumb question, i'm a newbie! Many Thanks, Phil
-
Hi Guys, i'm trying to use the DomainController class to access the metadata of an OU, but i keep getting: "'System.DirectoryServices.ActiveDirectory.DomainController.DomainController()' is inaccessible due to its protection level" any ideas on how i can change this access level? i can access the classes with the DirectoryServices namespace, it just seems to be the ActiveDirectory namespace in struggling with! sorry if this is dumb question, i'm a newbie! Many Thanks, Phil
-
Hi Guys, i'm trying to use the DomainController class to access the metadata of an OU, but i keep getting: "'System.DirectoryServices.ActiveDirectory.DomainController.DomainController()' is inaccessible due to its protection level" any ideas on how i can change this access level? i can access the classes with the DirectoryServices namespace, it just seems to be the ActiveDirectory namespace in struggling with! sorry if this is dumb question, i'm a newbie! Many Thanks, Phil
-
Hi Guys, i'm trying to use the DomainController class to access the metadata of an OU, but i keep getting: "'System.DirectoryServices.ActiveDirectory.DomainController.DomainController()' is inaccessible due to its protection level" any ideas on how i can change this access level? i can access the classes with the DirectoryServices namespace, it just seems to be the ActiveDirectory namespace in struggling with! sorry if this is dumb question, i'm a newbie! Many Thanks, Phil
Thanks for your help guy, this is how i did it... DirectoryContext dCon = new DirectoryContext(DirectoryContextType.Domain); DomainController dc = DomainController.FindOne(dCon); ActiveDirectoryReplicationMetadata adMeta = dc.GetReplicationMetadata(name); foreach (AttributeMetadata a in adMeta.Values) { }
-
Hi Guys, i'm trying to use the DomainController class to access the metadata of an OU, but i keep getting: "'System.DirectoryServices.ActiveDirectory.DomainController.DomainController()' is inaccessible due to its protection level" any ideas on how i can change this access level? i can access the classes with the DirectoryServices namespace, it just seems to be the ActiveDirectory namespace in struggling with! sorry if this is dumb question, i'm a newbie! Many Thanks, Phil
-