"An unsecured or incorrectly protected error was received from the other side."

I get:

Error

"An unsecured or incorrectly protected error was received from the other side. See the internal Fault exception for the DTC and detail.

I did this on the client side, and I did the same in the console application, but this error occurred, maybe something conflicts.

I also checked app.config.

The code:

<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 ideas?

+5
source share
2 answers

I had this problem and I had to disable the security context for WCF bindings. You need to disable their bindings for both the client and the service.

Here is the configuration file if your WCF is hosted in IIS:

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

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

+4

, testclient .

:
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE>wcftestclient.exe http://localhost:31/AuthenicationService.svc?wsdl

, .
, .
, .

0

All Articles