Hello everyone,
I want to display the user information for the username entered in a textbox, i have made the code and it works fine on my pc but when I upload it on server, for most of the fields in active directory system.byte[] is returned instead of actual value. Here is the extract from my code.
DirectoryEntry dEntry = new DirectoryEntry("path");
DirectorySearcher dSearcher = new DirectorySearcher(dEntry);
dSearcher.Filter = string.Format("(&(objectClass=user)(displayname=*{0}*))", txtName.Text);
SearchResultCollection srcUsers;
srcUsers = dSearcher.FindAll();
foreach (SearchResult result in srcUsers)
{
ResultPropertyCollection rpcUsers = result.Properties;
foreach (string strKey in rpcUsers.PropertyNames)
{
foreach (Object obProp in rpcUsers[strKey])
{
  ...
Go to the complete details ...