Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active Directory update using ADSI

Status
Not open for further replies.

pusalaanita

IS-IT--Management
Feb 22, 2006
12
NO
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?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top