troubleshooting Question

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

Avatar of JB4375
JB4375Flag for United States of America asked on
.NET Programming
1 Comment1 Solution1815 ViewsLast Modified:
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=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
JB4375

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros