Avatar of JB4375
Flag 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=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> to the web.config file.

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.
.NET Programming

Avatar of undefined
Last Comment

8/22/2022 - Mon