
[英]Windows Service LdapException: The LDAP server is unavailable
[英]How to handle LDAP server is unavailable in a container?
我正在尝试在容器中部署 .net 应用程序。 我打开了 windows 身份验证。 每次我尝试启动应用程序时,我都会得到:
System.DirectoryServices.AccountManagement.PrincipalServerDownException: The server could not be contacted.
---> System.DirectoryServices.Protocols.LdapException: The LDAP server is unavailable.
这是代码似乎失败的行
new PrincipalContext(ContextType.Domain);
该代码在非容器服务器上运行良好
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.