I got the following snippet (SomeName/SomeDomain contains real values in my code)
var entry = new DirectoryEntry(\"LDAP://CN=SomeNa
Using the Err.exe tool here
http://www.microsoft.com/download/en/details.aspx?id=985
It spits out:
for hex 0x8000500c / decimal -2147463156 :
E_ADS_CANT_CONVERT_DATATYPE adserr.h
The directory datatype cannot be converted to/from a native
DS datatype
1 matches found for "0x8000500c"
Googled "The directory datatype cannot be converted to/from a native" and found this KB: http://support.microsoft.com/kb/907462