Dim subtree As New DirectoryEntry(ADRootQueryString, "domain\loginame",
"Password1", AuthenticationTypes.Secure)
If validCharacters.Match(name).Success Then
rootPath = String.Format(ADDefaultContextQueryString, _
subtree.Properties("defaultNamingContext").Value.T oString)
filter = String.Format(ADPathQueryString, name)
Dim search As New DirectorySearcher
'Error at the this line
search.SearchRoot.Path = rootPath
summaryResults = Find(rootPath, filter)
end if
I am trying to query the AD on a localhost project and have valid login
details for that AD, it seems as thought it does not like my
credentials, I get the error : "The specified domain either does not
exist or could not be contacted" on line
search.SearchRoot.Path = rootPath
Any suggestions?