I have a requirement to add user as member of group in trusted domain.
I have been following the code sampel from this link
The IsMemberOf()
fails with error:
Information about the domain could not be retrieved (1355)
Looking for a solution, they say that it is a regression introduced in .Net 4.5 and was solved in 4.5.1 I have 4.5.2 installed.
If I configure the DNS, it works !!
The trouble I am having is the windows machine from where the code is executed can't have the DNS configured to the same AD server. It's a test machine and each time different AD servers will be used.