Wednesday, September 16, 2015

Some or all identity references could not be translated

Asp.net  web app access Active directory.
 SecurityIdentifier sid = new SecurityIdentifier((byte[])searchResultEntry.Attributes[AttObjectSid][0], 0);
NTAccount nt = (NTAccount)sid.Translate(typeof(NTAccount));

Translate throw exception.

The issue is  I use asp pool identity to access Active Directory.

But my develop machine is not joined to the accessed AD.
Most feature are ok.

No comments:

Post a Comment