Wcf System.ServiceModel.Security.MessageSecurityException“;传出消息的身份检查失败。”;
我得到的错误是:Wcf System.ServiceModel.Security.MessageSecurityException“;传出消息的身份检查失败。”;,wcf,Wcf,我得到的错误是: Identity check failed for outgoing message. The expected DNS identity of the remote endpoint was 'MYSERVER' but the remote endpoint provided DNS claim 'myserver.mycompany.com'. If this is a legitimate remote endpoint, you can fix the problem
Identity check failed for outgoing message. The expected DNS identity of the remote endpoint was 'MYSERVER' but the remote endpoint provided DNS claim 'myserver.mycompany.com'. If this is a legitimate remote endpoint, you can fix the problem by explicitly specifying DNS identity 'myserver.mycompany.com' as the Identity property of EndpointAddress when creating channel proxy.
我在谷歌上搜索了一下,发现了很多问题,但是没有一个解决方案对我有效
我的问题1)“预期DNS标识”确切来自何处,2)DNS声明来自何处
从我所能告诉你的,问题2的答案是元素
与我看到的其他帖子不同的一点是,这只在我们的一台服务器上出现故障,所以我认为这可能是这个特定服务器的DNS问题 我们可以看一下您的配置吗?正如我所说的,它正在运行的所有其他服务器环境中工作,因此问题不是真正的配置。如果我能找到这两个问题的答案(特别是#1),我可能就能找出这台服务器的不同之处。我可以说,如果我安装的证书没有dns后缀(即myserver vs myserver.mycompany.com),那么这个特定的服务器一切都可以正常工作。