Active Directory with dotnet

A

anonymous

I am accessing a Intranet website and trying get the
domain users properties.
It works fine on the local machine but if i try to access
the same site from other
machine its gives the following error

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()
at Security.DAL.ActiveDirectory.searchUserInAD(String
Name)

Description: An operations error occurred
Source: System.DirectoryServices

the code works properly on the local machine. WHen
connecting from another computer on the intranet it does
get the proper username and display it. I haven't found
anythign on this error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top