newbie question

Jun 21, 2015 at 4:06 PM
I am trying to connect to AD to read simple information. I am wanting to pass the windows login and use that to retrieve fname,lname, and email

I cannot figure out your methods. I cannot find any clear instructions

i am using using System.DirectoryServices.Linq;

using (DirectoryContext dc = new DirectoryContext(connectionstring ))


However I see no methods exposed to use
Jun 24, 2015 at 7:40 PM
Hi Chinasyndrome,

If you take a look at the documentation page, it should get you off on the right foot.

Jun 26, 2015 at 12:38 PM
ok i am using that, I copied the code there to make a class and I am getting this

Error 10 The type or namespace name 'DirectoryProperty' could not be found (are you missing a using directive or an assembly reference?) C:\Users\China\Documents\Visual Studio 2013\Projects\AD_LINQ_READER\AD_LINQ_READER\MockContext.cs 60 3 AD_LINQ_READER

I used nugget to add the project

here is my directives

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.DirectoryServices.Linq;
using System.DirectoryServices.ActiveDirectory;
using System.DirectoryServices;
using System.Linq;