Nov 09, 2015 12:13 AM|Fei Han - MSFT|LINK
Welcome to ASP.NET forum.
<%@ Import Namespace="System.DirectoryService" %>
We could import a namespace into a Web page via <%@ Import namespace="value" %>, but “DirectoryService” is not in
System namespace. Please make sure if you include required dll file in your project.
I am getting "DIrectoryEntry is not defined". I assume this is because I need to add a reference. I normally develop in Visual Studio, and would go "Project > Reference > Select Component", and then import the namespace. I figure I have to do the same thing
here, but I have no idea how. I am using Sharepoint Designer to create a single ASP page.
You could try to copy the dll file into your bin folder and try it again.