WCF,The caller was not authenticated by the service
2012-10-01 10:47
591 查看
调用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" (注意:basicHttpBinding 安全性差)
Could not connect to net.tcp://222.138.109.145:8020/WCFRun. The connection attempt lasted for a time span of 00:00:01.1562500. TCP error code 10061: 由于目标机器积极拒绝,无法连接。 222.138.109.145:8020.
解决方法:
"由于目标机器积极拒绝,无法连接。"这个错误通常是由于你的Service没有启动而造成的。
如果确定Service已经启动,你可以先用Http连接试试。
相关文章推荐
- WCF:The caller was not authenticated by the service. ---> System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed.
- wcf访问出现的安全问题:the caller was not authenticated by the service.
- wcf访问出现的安全问题:the caller was not authenticated by the service.
- The caller was not authenticated by the service
- WCF分布式开发常见错误(22):The caller was not authenticated...如何在XP系统为WCF设置可信任的证书
- WCF分布式开发常见错误(22):The caller was not authenticated...如何在XP系统为WCF设置可信任的证书
- 当WCF遭遇An existing connection was forcibly closed by the remote host
- ORA-16447 Redo apply was not active at the target standby database
- The request was denied by service delegate (SBMainWorkspace) for reason: Uns
- Using Windows Server 2012 Backup for Hyper-V Virtual Machines. Error 80780176 - The specified component was not reported by the VSS writer.
- Incorrect decrement of the reference count of an object that is not owned at this point by the caller1
- ORA-16447 Redo apply was not active at the target standby database
- 解决Azure publish “the remote desktop configuration was not generated by windows azure Tools”问题
- WCF, the Service attribute value in the ServiceHost directive could not be found.
- The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0.
- The SMTP server requires a secure connection or the client was not authenticated
- The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.
- WCF分布式开发常见错误(28):The requested upgrade is not supported by...
- [WCF] Could not find default endpoint element that references contract 'xx' in the ServiceModel
- Error : The specified component was not reported by the VSS writer (Error 517) in Windows Server 2012 Backup