Archive

Archive for the ‘Active Directory’ Category

Unknown Error (0x80005000) after DirectoryEntry.RefreshCache()

May 23, 2008 2 comments

In one of my Projects i had a Problem to update a DirectoryEntry object.  In this case it was a User in Active Directory. I spent some hours to search for a cause of this error and for the solution and had no idea.

The cause for thsi problem was the CN attribute of the user. It contains “/” in it. The CN looks like “Name Surname / Department”. After replaced “/” by “-” everything works fine.

The Stacktrace for this error looks like:

at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.RefreshCache(String[] propertyNames)

Andrej

Categories: .NET, Active Directory