Compliation Error

Posted on 2005-04-19
Last Modified: 2010-04-07
Hi All,
I've made a simple web form to query Active Directory thanks to some other code I found on this site howerver I'm getting a compliation error in my testing.

BC30466: Namespace or type 'DirectoryEntry' for the Imports 'System.DirectoryServices' cannot be found.

Any idea why I'd get this error?  The server running is 2003 enterprise with all the lastest and greatest patches, including SP1 for 2003.  

Question by:liquid22
    LVL 12

    Expert Comment

    You should add a reference to the dll for that namespace in your project.
    LVL 1

    Author Comment

    What if I'm not using a project?  I'm coding in Dreamweaver and am not using any type of .NET development application.
    LVL 12

    Accepted Solution

    I don't know about dreamweaver.
    But I believe that there is somewhere to add a reference.
    What it does is adding "/r:xxx.dll" option to the compiler.
    LVL 1

    Author Comment

    I'l go ahead and award the points to you since I think I know my problem now.  I copied and pasted the code behind page but I bet I need to compile that using VB.NET or a similar app so that I can add the reference you're talking about.  I'll give that a shot.  Thanks.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now