We help IT Professionals succeed at work.
Get Started

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

JB4375 asked
Last Modified: 2013-11-26
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/Programming/Languages/.NET/ASP.NET/Q_24129714.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.
Watch Question
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE