"无抵押或担保不正确的故障是由对方&QUOT好评; [英] "An unsecured or incorrectly secured fault was received from the other party"

查看:181
本文介绍了"无抵押或担保不正确的故障是由对方&QUOT好评;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到:






无抵押或不正确安全的故障从对方收到。请参阅故障代码和详细的内部故障异常。




我做这个客户端上,我做了一个控制台应用程序一样,但是这个错误就可能是一些冲突。



我已经检查了的app.config 以及



代码是:



<预类=郎咸平的XML prettyprint-覆盖> <客户端>
<端点地址=的net.tcp://本地主机:5054 /选手绑定=NetTcpBinding的bindingConfiguration =NetTcpBinding_IPlayerService合同=PlayerService.IPlayerServiceNAME =NetTcpBinding_IPlayerService>
<同一性GT;
< DNS值=pident.cloudapp.net/>
< /身份>
< /端点>
<端点地址=的net.tcp://本地主机:5049 /公众绑定=NetTcpBinding的bindingConfiguration =NetTcpBinding_IPublicService合同=公共Service.IPublicServiceNAME =NetTcpBinding_IPublicService/>
<端点地址=的net.tcp://本地主机:5051 /用户绑定=NetTcpBinding的bindingConfiguration =NetTcpBinding_IUserService合同=用户Service.IUserServiceNAME =NetTcpBinding_IUserService>
<同一性GT;
< DNS值=pident.cloudapp.net/>
< /身份>
< /端点>



没有人有任何想法?


解决方案

我只是有这个问题,不得不关闭安全上下文的WCF绑定。你需要将其关闭,在客户端和服务并重的绑定



下面的配置文件,如果你的WCF是IIS托管

 < ws2007FederationHttpBinding> 
<结合>
<安全模式=TransportWithMessageCredential>
<消息establishSecurityContext =FALSE/>
< /安全>
< /&结合GT;
< / ws2007FederationHttpBinding>

请参阅此帖子:
http://stack247.wordpress.com/2013 / 05/28 / AN-不安全的有或不正确的安全故障,被-接收来自该其他方/


I'm getting:

"An unsecured or incorrectly secured fault was received from the other party. See the inner Fault Exception for the fault code and detail."

I've done this on the client side and I've done the same in a console application, but that error came may be something conflict.

I've checked the app.config as well.

Code is:

<client>
  <endpoint address="net.tcp://localhost:5054/player" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IPlayerService" contract="PlayerService.IPlayerService" name="NetTcpBinding_IPlayerService">
    <identity>
      <dns value="pident.cloudapp.net"/>
    </identity>
  </endpoint>
  <endpoint address="net.tcp://localhost:5049/public" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IPublicService" contract="Public Service.IPublicService" name="NetTcpBinding_IPublicService"/>
  <endpoint address="net.tcp://localhost:5051/user" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IUserService" contract="User Service.IUserService" name="NetTcpBinding_IUserService">
    <identity>
      <dns value="pident.cloudapp.net"/>
    </identity>
  </endpoint>

Does anyone have any idea?

解决方案

I just had this issue and had to turn off security context on WCF bindings. You need to turn them off on the bindings in both the client and the service.

Here's the config file if your WCF is IIS-hosted:

<ws2007FederationHttpBinding>
    <binding>
        <security mode="TransportWithMessageCredential">
            <message establishSecurityContext="false" />
        </security>
    </binding>
</ws2007FederationHttpBinding>

See this post: http://stack247.wordpress.com/2013/05/28/an-unsecured-or-incorrectly-secured-fault-was-received-from-the-other-party/

这篇关于&QUOT;无抵押或担保不正确的故障是由对方&QUOT好评;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆