If the program runs as a domain account, then everything works fine if from a local account on the line checkEntry.Name.ToString();
then exception The specified domain does not exist or could not be contacted.
DirectoryEntry checkEntry = new DirectoryEntry("LDAP://dc=MyDomain,dc=com", @"MyDomain\MyUser", "MyPassword", AuthenticationTypes.Secure);
checkEntry.Name.ToString();
Can there be pending updates (Windows Update)?
I get this all the time if updates ar waiting to install.
After a reboot everything works fine again.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.