Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 02:20 PM
J Quick
Guest
 
Posts: n/a
Default 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.DirectoryServices added to the project references and to the
aspx form. The autogenerated code includes "Imports
System.DirectoryServices" in the source.

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


  #2  
Old July 19th, 2005, 02:20 PM
thorpe
Guest
 
Posts: n/a
Default Re: Type not defined error

try a .net group


  #3  
Old July 19th, 2005, 02:20 PM
[MSFT]
Guest
 
Posts: n/a
Default RE: Type not defined error

Hello,

If you modify the code like:

Dim dirEntry As new System.DirectoryServices.DirectoryEntry(strLDAPPat h)

Will this correct the problem?

Luke

  #4  
Old July 19th, 2005, 02:22 PM
Yan-Hong Huang[MSFT]
Guest
 
Posts: n/a
Default 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.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.as
p&SD=msdn

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

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles