If you use the System.DirectoryServices namespace to do Active Directory stuff, you may have run into this error:
Operation is not valid due to the current state of the object.at
System.DirectoryServices.PropertyValueCollection.OnInsertComplete(Int32 index,
Object value) at
System.Collections.CollectionBase.System.Collections.IList.Add(Object value) at
System.DirectoryServices.PropertyValueCollection.Add(Object value)
This problem is mentioned in
KB886541, which refers the hotfix in
KB35763. This is one of those hotfixes that you have to call in for, but it does in fact fix this error.