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"

 

posted on 2009-03-16 17:58  Kingly  阅读(660)  评论(0编辑  收藏  举报