Re: Unable to read Active Directory data from a web part - Unknown error (0x80005000)
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: Sun, 11 Jan 2004 00:23:32 -0600
Can you post your code? Have you read this article?
These problems with System.DirectoryServices are generally caused by
security context issues and the use of default credentials and/or serverless
binding with a non-domain account.
"Stefan Falk" <email@example.com> wrote in message
> Hello Arthur,
> i have a very similar problem. Seems as if AD searching from ASP.NET works
> only occasionally.
> My setup is as follows: An ASP.NET web service should query AD about the
> SMTP address of a user and send mail to him/her. My Windows XP development
> machine with local IIS successfully queries AD on our Windows 2003 DC.
> However, at the customer's site, the Windows 2000 IIS seems not to try to
> query the Windows 2000 DC (nothing logged on the DCs despite logging
> on). DirectorySearcher.FindOne simply returns nothing without any error
> I have searched MSDN library to no avail. Seems to me as if many
> have this kind of problem but noone has an answer.
> Do you have something new about the topic?
> Stefan Falk