【问题标题】:The specified domain does not exist or could not be contacted指定的域不存在或无法联系
【发布时间】:2015-09-16 05:43:06
【问题描述】:

如果程序作为域帐户运行,那么如果从本地帐户在线 checkEntry.Name.ToString(); 则一切正常,然后异常 指定的域不存在或无法联系。 p>

DirectoryEntry checkEntry = new DirectoryEntry("LDAP://dc=MyDomain,dc=com", @"MyDomain\MyUser", "MyPassword", AuthenticationTypes.Secure);
checkEntry.Name.ToString();

【问题讨论】:

    标签: c# active-directory directoryservices


    【解决方案1】:

    是否有待处理的更新(Windows 更新)?

    如果更新等待安装,我总是会收到此信息。

    重启后一切正常。

    【讨论】:

    • 我们通过在域中引入计算机解决了这个问题
    猜你喜欢
    • 1970-01-01
    • 2013-01-25
    • 1970-01-01
    • 2010-11-19
    • 1970-01-01
    • 2017-12-08
    • 2021-11-21
    • 2016-12-31
    相关资源
    最近更新 更多