Guest User

Untitled

a guest
Aug 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. 2018-08-17 15:29:21.190 +08:00 [Error] Error in getting fullname for lsun
  2. System.DirectoryServices.DirectoryServicesCOMException (0x80070035): The network path was not found.
  3.  
  4. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
  5. at System.DirectoryServices.DirectoryEntry.Bind()
  6. at System.DirectoryServices.DirectoryEntry.get_AdsObject()
  7. at System.DirectoryServices.PropertyValueCollection.PopulateList()
  8. at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
  9. at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
  10. at Company.Project.Common.Utility.LDAPUtility.QueryLDAPUserFullName(String userId) in C:CodeProjectbranchestestsrcDotNetCompany.Project.CommonUtilityLDAPUtility.cs:line 344
  11. at Company.Project.Common.Utility.LDAPUtility.GetUserFullName(String userId) in C:CodeProjectbranchestestsrcDotNetCompany.Project.CommonUtilityLDAPUtility.cs:line 239
  12.  
  13. private static string QueryLDAPUserFullName(string userId)
  14. {
  15. string fullName = "";
  16.  
  17. DirectoryEntry objDirEnt = new DirectoryEntry(ConstPrivileges.ADSPROVIDER + "://" + ConstPrivileges.DOMAIN + "/" + userId);
  18.  
  19. if (objDirEnt.Children != null)
  20. fullName = objDirEnt.Properties["FullName"].Value.ToString();//Line 344
  21.  
  22. return fullName;
  23. }
Add Comment
Please, Sign In to add comment