Link to home
Start Free TrialLog in
Avatar of JB4375
JB4375Flag for United States of America

asked on

VB.net: ActiveDS doesn't contain any public member or can't be found.

I'm attempting to populate a drop down list with the members of an OU. I found the following code at this link here: https://www.experts-exchange.com/questions/24129714/Populate-a-dropdownlist-with-members-of-a-security-group-in-ASP-NET-VB.html?sfQueryTermInfo=1+10+dropdownlist+ou

I'm getting the error on the Imports ActiveDS statement. I had the same error on Imports System.Directory Services and corrected by adding: <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> to the web.config file.

Questions:
1. What's the entry for ActiveDS in web.config?
2. Is manually editing web.config the best way to go? I've seen people state that I need right click somewhere within the project and select "add reference" and then select a particular dll. I've checked around within the project, but haven't been able to get this option. No idea what's going on there.
3. Is ActiveDS the current preferred method? I've seen other people reference wanting to use deChildren method instead.

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of JB4375
JB4375
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial