Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2018-08-17 15:29:21.190 +08:00 [Error] Error in getting fullname for lsun
- System.DirectoryServices.DirectoryServicesCOMException (0x80070035): The network path was not found.
- at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
- at System.DirectoryServices.DirectoryEntry.Bind()
- at System.DirectoryServices.DirectoryEntry.get_AdsObject()
- at System.DirectoryServices.PropertyValueCollection.PopulateList()
- at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)
- at System.DirectoryServices.PropertyCollection.get_Item(String propertyName)
- at Company.Project.Common.Utility.LDAPUtility.QueryLDAPUserFullName(String userId) in C:CodeProjectbranchestestsrcDotNetCompany.Project.CommonUtilityLDAPUtility.cs:line 344
- at Company.Project.Common.Utility.LDAPUtility.GetUserFullName(String userId) in C:CodeProjectbranchestestsrcDotNetCompany.Project.CommonUtilityLDAPUtility.cs:line 239
- private static string QueryLDAPUserFullName(string userId)
- {
- string fullName = "";
- DirectoryEntry objDirEnt = new DirectoryEntry(ConstPrivileges.ADSPROVIDER + "://" + ConstPrivileges.DOMAIN + "/" + userId);
- if (objDirEnt.Children != null)
- fullName = objDirEnt.Properties["FullName"].Value.ToString();//Line 344
- return fullName;
- }
Add Comment
Please, Sign In to add comment