Click here to Skip to main content
15,905,508 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Icons and Images for VB forms Pin
Mark Cabbage17-Oct-07 12:54
Mark Cabbage17-Oct-07 12:54 
QuestionLost my post Pin
~V~17-Oct-07 1:40
~V~17-Oct-07 1:40 
AnswerRe: Lost my post Pin
ChandraRam17-Oct-07 1:42
ChandraRam17-Oct-07 1:42 
AnswerRe: Lost my post Pin
Steven J Jowett17-Oct-07 1:45
Steven J Jowett17-Oct-07 1:45 
AnswerRe: Lost my post Pin
~V~17-Oct-07 2:42
~V~17-Oct-07 2:42 
QuestionChange Debug Level to 0 Pin
matjame17-Oct-07 0:52
matjame17-Oct-07 0:52 
AnswerRe: Change Debug Level to 0 Pin
Dave Kreskowiak17-Oct-07 6:52
mveDave Kreskowiak17-Oct-07 6:52 
QuestionUnable to connect to Active Directory via SSL using VB.net Pin
Daniel Chew16-Oct-07 22:40
Daniel Chew16-Oct-07 22:40 
I am trying to connect to an Active Directory via secure socket.

Below are my codes.


Dim adConnection As String

adConnection = "LDAPS://cisdcccc.ccccccc.eee.mmmmm.com.mm/dc=cccccc,cd=eee,dc=mmmmm,dc=com,dc=yy"

Dim entry As New System.DirectoryServices.DirectoryEntry(adConnection, "username", "password",
DirectoryServices.AuthenticationTypes.SecureSocketsLayer)

Dim searcher As New System.DirectoryServices.DirectorySearcher(entry)

searcher.SearchScope = DirectoryServices.SearchScope.OneLevel


The exception that gets thrown is

Stack Trace:


[COMException (0x80005000): Unknown error (0x80005000)]
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +610
System.DirectoryServices.DirectoryEntry.Bind() +36
System.DirectoryServices.DirectoryEntry.get_AdsObject() +31
System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) +73
System.DirectoryServices.DirectorySearcher.FindOne() +42
_Default.Page_Load(Object sender, EventArgs e) +82
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061



The port 636 is open. I am unable to understand what is causing this problem.

Please help.

Thanks.
AnswerRe: Unable to connect to Active Directory via SSL using VB.net Pin
Dave Kreskowiak17-Oct-07 15:16
mveDave Kreskowiak17-Oct-07 15:16 
GeneralRe: Unable to connect to Active Directory via SSL using VB.net Pin
Daniel Chew17-Oct-07 16:21
Daniel Chew17-Oct-07 16:21 
QuestionXml scchema and data tables Pin
JonCox16-Oct-07 22:35
JonCox16-Oct-07 22:35 
AnswerRe: Xml scchema and data tables Pin
Dave Kreskowiak17-Oct-07 15:14
mveDave Kreskowiak17-Oct-07 15:14 
QuestionSQL Check if a record exists Pin
The ANZAC16-Oct-07 22:00
The ANZAC16-Oct-07 22:00 
AnswerRe: SQL Check if a record exists Pin
Tom Deketelaere16-Oct-07 22:38
professionalTom Deketelaere16-Oct-07 22:38 
GeneralRe: SQL Check if a record exists Pin
The ANZAC17-Oct-07 0:08
The ANZAC17-Oct-07 0:08 
AnswerRe: SQL Check if a record exists Pin
Vimalsoft(Pty) Ltd16-Oct-07 22:47
professionalVimalsoft(Pty) Ltd16-Oct-07 22:47 
GeneralRe: SQL Check if a record exists Pin
The ANZAC17-Oct-07 0:04
The ANZAC17-Oct-07 0:04 
GeneralRe: SQL Check if a record exists Pin
Vimalsoft(Pty) Ltd17-Oct-07 0:24
professionalVimalsoft(Pty) Ltd17-Oct-07 0:24 
GeneralRe: SQL Check if a record exists Pin
The ANZAC17-Oct-07 0:49
The ANZAC17-Oct-07 0:49 
GeneralRe: SQL Check if a record exists Pin
Vimalsoft(Pty) Ltd17-Oct-07 1:41
professionalVimalsoft(Pty) Ltd17-Oct-07 1:41 
QuestionHow to send and receive e-mails in windows application? Pin
hgs24shravgi16-Oct-07 21:08
hgs24shravgi16-Oct-07 21:08 
AnswerRe: How to send and receive e-mails in windows application? Pin
Salman Sheikh16-Oct-07 21:24
Salman Sheikh16-Oct-07 21:24 
AnswerRe: How to send and receive e-mails in windows application? Pin
Steven J Jowett17-Oct-07 1:37
Steven J Jowett17-Oct-07 1:37 
GeneralRe: How to send and receive e-mails in windows application? Pin
hgs24shravgi17-Oct-07 20:36
hgs24shravgi17-Oct-07 20:36 
GeneralRe: How to send and receive e-mails in windows application? Pin
hgs24shravgi19-Oct-07 0:12
hgs24shravgi19-Oct-07 0:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.