I have two lines of code, below....
DirectoryEntry directoryResult = ADResult.GetDirectoryEntry();
lblsAMAccountName.Text = directoryResult.Properties["sAMAccountName"][0].ToString();
From that I get the following error....
Index was out of range. Must be non-negative and less than the size of the collection.
Can anyone point me in the right direction as to why I am receiving this error?
Please and thanks...
David