M
MDS
All,
I want to retrieve Users from my AD via a Web appliction. I ran this script
to populate a combobox in a normal app and it works...
But when I use this script in a Web App it fails
Any Idea Why?
Marc
Dim entry As New
DirectoryServices.DirectoryEntry("LDAP://DC=PROD,DC=TELENET,DC=BE")
Dim mySearcher1 As New System.DirectoryServices.DirectorySearcher(entry)
Dim result As System.DirectoryServices.SearchResult
Dim oValue As New ArrayList
Dim mySearcher
For Each result In mySearcher.FindAll()
oValue.Add(Microsoft.VisualBasic.Right(result.GetDirectoryEntry().Name,
Len(result.GetDirectoryEntry().Name) - 3))
Next
User1.DataSource = oValue
User1.Visible = True
I want to retrieve Users from my AD via a Web appliction. I ran this script
to populate a combobox in a normal app and it works...
But when I use this script in a Web App it fails
Any Idea Why?
Marc
Dim entry As New
DirectoryServices.DirectoryEntry("LDAP://DC=PROD,DC=TELENET,DC=BE")
Dim mySearcher1 As New System.DirectoryServices.DirectorySearcher(entry)
Dim result As System.DirectoryServices.SearchResult
Dim oValue As New ArrayList
Dim mySearcher
For Each result In mySearcher.FindAll()
oValue.Add(Microsoft.VisualBasic.Right(result.GetDirectoryEntry().Name,
Len(result.GetDirectoryEntry().Name) - 3))
Next
User1.DataSource = oValue
User1.Visible = True