Type not defined error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • J Quick

    Type not defined error

    I'm getting the following compilation error on the line of vb.net code
    below.

    Compiler Error Message: BC30002: Type 'DirectoryEntry ' is not defined.

    Dim dirEntry As new DirectoryEntry( strLDAPPath)


    I have System.Director yServices added to the project references and to the
    aspx form. The autogenerated code includes "Imports
    System.Director yServices" in the source.

    Any idea what's need to get the compiler to see the reference?


  • thorpe

    #2
    Re: Type not defined error

    try a .net group


    Comment

    • [MSFT]

      #3
      RE: Type not defined error

      Hello,

      If you modify the code like:

      Dim dirEntry As new System.Director yServices.Direc toryEntry(strLD APPath)

      Will this correct the problem?

      Luke

      Comment

      • Yan-Hong Huang[MSFT]

        #4
        RE: Type not defined error

        Hi,

        I was reviewing the issue thread and saw Luke has replied it. Is the
        problem resovled? If you have any more concerns on it, please feel free to
        post here and we will follow up.

        Thanks very much.

        Best regards,
        Yanhong Huang
        Microsoft Community Support

        Get Secure! ¨C www.microsoft.com/security
        Register to Access MSDN Managed Newsgroups!
        -http://support.microso ft.com/default.aspx?sc id=/servicedesks/msdn/nospam.as
        p&SD=msdn

        This posting is provided "AS IS" with no warranties, and confers no rights.

        Comment

        Working...