Last post Nov 24, 2010 02:25 AM by eikden
Nov 23, 2010 03:23 PM|miltonsnider|LINK
I am trying to display all the properties for a user on a webpage. This code works fine on the local workstation but when I try to run it on the iss server I get the following error:
Exception Details: System.DirectoryServices.DirectoryServicesCOMException: A referral was returned from the server.
If I comment out the Dim sr as searchresult... I do not get the error. Here is the code:
Should this code work on an IIS server?
System.DirectoryServices.DirectoryServicesCOMException: A referral was returned from the server
Nov 24, 2010 02:25 AM|eikden|LINK
if you are using server, you might need to point to the correct domain. such as
DirectoryEntry entry = new DirectoryEntry("GC://domain.com");
domain.com is the domain that access by your server.