Ldap active directory

Jasper

New member
Joined
Feb 21, 2008
Messages
1
Programming Experience
Beginner
I am a beginner to Ldap programming.I am developing a vb.net windows application.I have the following code to simply
display the ldap active directory path and name in console.

Dim entry As New DirectoryEntry("LDAP://domain")
Console.writeline(entry.path)
Console.writeline(entry.name)

I am able to retrive the path but getting an error at
console.writeline(entry.name)

The error as An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in system.directoryservices.dll

Additional information: An operations error occurred


Unhandled Exception: System.Runtime.InteropServices.COMException (0x80072020): An operations error occurred
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_IsContainer()
Can anybody explain where I am goin wrong.

Thanks in advance
Regards
Jasper
 
Last edited:
Don't double post. And please post to appropriate forum, it rarely is the first one.
 
Back
Top