?
Solved

eDirectory/LDAP and VB.NET

Posted on 2003-11-19
5
Medium Priority
?
1,514 Views
Last Modified: 2008-02-01
I am attemping to connect to our eDirectory using VB.NET via LDAP and I keep getting a "InteropServices.COMException" exception. I am able to connect to our eDirectory using an LDAP Browser anonymously. Here is a snippet of my code:

Imports System.DirectoryServices

Public Sub New()
    dim root as new directoryEntry("ldap://xx.xxx.x.xxx")
    dim searcher as new directorysearcher(root)
    search.filter = ("cn=Username")
    search.searchscope = searchscope.subtree
    dim results as searchresultcollection
    results = search.findall()    <--- failing here
End Sub

Any assistance would be appreciated
0
Comment
Question by:liebrand
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9781407
What is the full text of the Interop exception?
0
 
LVL 15

Author Comment

by:liebrand
ID: 9781418
I figured it out...  the path had to have an uppercase LDAP:// (i had ldap://)   very strange....


I would like to close this PAQ.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9781423
You need to post a question in Community Support to close this question.
0
 
LVL 15

Accepted Solution

by:
liebrand earned 0 total points
ID: 9781433
Ok -- thanks...

I was re-reading the directoryservices overview and I saw this under the path property:

"Note   The portion of the Path that identifies the provider (precedes "://") is case sensitive. For example, "LDAP://" or "WinNT://"."
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

650 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