Type not defined error

J

J Quick

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?
 
M

[MSFT]

Hello,

If you modify the code like:

Dim dirEntry As new System.DirectoryServices.DirectoryEntry(strLDAPPath)

Will this correct the problem?

Luke
 
Y

Yan-Hong Huang[MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top