Code works in Windows app. but not in ASP.Net
- From: "Rolf Barbakken" <notnoisy@xxxxxxxxxxxxx>
- Date: Tue, 28 Mar 2006 11:40:24 +0200
I get this error in the webbrowser:
"The specified domain either does not exist or could not be contacted"
The code for the procedure is:
Sub ListUsers(ByVal DOMAIN As String, ByVal OU As String)
Dim srch As System.DirectoryServices.DirectorySearcher
Dim result As System.DirectoryServices.SearchResult
Dim de, dir As System.DirectoryServices.DirectoryEntry
de = New System.DirectoryServices.DirectoryEntry("LDAP://" & DOMAIN
& "/" & OU)
srch = New System.DirectoryServices.DirectorySearcher(de)
srch.Filter = "(&(objectClass=user)(objectCategory=person))"
For Each result In srch.FindAll()
dir = result.GetDirectoryEntry
txtTest.Text = txtTest.Text &
dir.Properties("distinguishedName").Value & vbCrLf
Next
End Sub
I use the exact same code and the exact same call to the procedure in a test
Windows-app with no problems. So I am guessing some rights problem. Which
rights are needed and which user needs them?
Thanks.
--
_________________
Rolf @ Questus ans
.
- Follow-Ups:
- Re: Code works in Windows app. but not in ASP.Net
- From: Joe Kaplan \(MVP - ADSI\)
- Re: Code works in Windows app. but not in ASP.Net
- Prev by Date: Re: Client Certificates Issue
- Next by Date: Re: Client Certificates Issue
- Previous by thread: Re: Client Certificates Issue
- Next by thread: Re: Code works in Windows app. but not in ASP.Net
- Index(es):