Home > .NET, Active Directory > Unknown Error (0x80005000) after DirectoryEntry.RefreshCache()

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

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

Advertisements
Categories: .NET, Active Directory
  1. Georgiy
    August 20, 2009 at 11:54 am

    Hello, Andrej. My name is Geogiy. Some tens years our parents were coworking together. It was my childhood, but i remeber your Moscow apartment, your sister and parents also. How can i contact you via any IM to have some talk?BTW, my skype is: g.svidritskiyMSN: orthodoxalshit@hotmail.comBest Ragards.

  2. May 11, 2013 at 1:07 am

    It’s in point of fact a great and useful piece of info. I’m satisfied that you simply
    shared this helpful information with us. Please stay us up to date like this.
    Thanks for sharing.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: