UserPrincipal.FindByIdentity results in COM error 0x80005000
问题 I've an MVC Intranet app that I've recently upgraded from .Net 4 to 4.6.1. This app queries user details from Active Directory to load details that aren't available in the Controller's User.Identity property and until lately has done so flawlessly. The code looks something like this: public static void foo() { var usr = LookupUser("MyDomain", "jbloggs"); ... } private static UserPrincipal LookupUser(string domain, string username) { Console.WriteLine($"Lookup {domain}\\{username}"); using