The caller was not authenticated by the service

调用WCF时,出现下面的错误:

System.ServiceModel.Security.SecurityNegotiationException : The caller was not authenticated by the service.
 System.ServiceModel.FaultException : The request for security token could not be satisfied because authentication failed.

解决方法:

将 binding="wsHttpBinding" 改为:binding="basicHttpBinding"

原文地址:https://www.cnblogs.com/Kingly/p/1413639.html