Active Directory Error: "A referral was returned from the server"

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi All:

I have written an Users Registration system that is working just fine when I point to an Active Directory running within a local VMWare instance. It's a very basic AD schema. But, when I try to use one of the test ADs at the client that is an exact copy of their production server, I get an exception when I attempt to perform a search. The error is:

"A referral was returned from the server".

I double checked to make sure I have the Base DN correct and the search filter correct. But, I still get the error.

Interesting enough, when I try the search using LDAPBrowser, I receive errors because it receives referrals to things like "ldap://ForectDnsZones.foo.bar:389/DC=ForestDnsZones,DC=foo,DC=bar";

I've attempted to set the DirectorySearcher.ReferralChasingOption = None. But, that doesn't seem to help.

Have you seen anything like this?

Thanks very much in advance any help you can provide!
Glenn
.