Author: vishal bhatt | Posted on: 10/27/2009 10:30:59 AM | Views : 272

Hi,
I am developing an Intranet application (authentication mode in Windows) that uses Directory Services to retrieve  details like Email, First Name etc of logged in user from Active Directory. It works fine when I run application from my machine (localhost), but when I run this application from other Machine (Remote) on same domain
I get this COM exception :{System.Runtime.InteropServices.COMException (0x8007052E): Logon failure: unknown user name or bad password. 

   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) 
   at System.DirectoryServices.DirectoryEntry.Bind() 
   at System.DirectoryServices.DirectoryEntry.get_AdsObject() 
   at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) 
   at System.DirectoryServices.DirectorySearcher.FindOne() 
  &n ...

Go to the complete details ...