pusalaanita
IS-IT--Management
I am logging in windows authentication mode as admin and retrieving details of all user, and then when retrieving the details of a single user, I am geting the following exception at Line 198.
System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 196: internal static string GetProperty(DirectoryEntry oDE, string PropertyName)
Line 197: {
Line 198: if (oDE.Properties.Contains(PropertyName))
Line 199: {
Line 200: return oDE.Properties[PropertyName][0].ToString();
Could anyone help me solve this?
System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 196: internal static string GetProperty(DirectoryEntry oDE, string PropertyName)
Line 197: {
Line 198: if (oDE.Properties.Contains(PropertyName))
Line 199: {
Line 200: return oDE.Properties[PropertyName][0].ToString();
Could anyone help me solve this?