Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when I tried to run my user interface in the client computer (in the same network) I got a message of the current error:"A remote side security requirement was not fulfilled during authentication. Try increasing the ProtectionLevel and/or ImpersonationLevel."


my wcf service is using tcp.

here are the config files:

wcf service config (it is the same as the windows service config)-Server:
XML
  <system.serviceModel>
<services>
  <service behaviorConfiguration="WcfServiceBehavior" name="WcfServiceLibrary.Service1">
    <endpoint address="" binding="basicHttpBinding" bindingConfiguration=""
      name="WcfSvcBasicHttpEndPoint" contract="WcfServiceLibrary.IStudent" />
    <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration=""
      name="WcfSvcBasicMexHttpEndPoint" contract="WcfServiceLibrary.IStudent" />
    <endpoint binding="netTcpBinding" bindingConfiguration="" name="WcfSvcTcpEndPoint"
      contract="WcfServiceLibrary.IStudent" />
    <host>
      <baseAddresses>
        <add baseAddress="http://xxx:8080/service" />
        <add baseAddress="net.tcp://xxx:8181/service" />
      </baseAddresses>
    </host>
  </service>
</services>
<behaviors>
  <serviceBehaviors>
    <behavior name="WcfServiceBehavior">
      <serviceDebug includeExceptionDetailInFaults="true" />
      <serviceMetadata httpGetEnabled="true" />
    </behavior>
  </serviceBehaviors>
</behaviors>



the User Interface config (a windows application):
XML
<system.serviceModel>
<bindings>
  <basicHttpBinding>
    <binding name="WcfSvcBasicHttpEndPoint" />
  </basicHttpBinding>
  <netTcpBinding>
    <binding name="WcfSvcTcpEndPoint" />
  </netTcpBinding>
  <wsHttpBinding>
    <binding name="WcfSvcBasicMexHttpEndPoint">
      <security mode="None" />
    </binding>
  </wsHttpBinding>
</bindings>
<client>
  <endpoint address="http://xxx:8080/service" binding="basicHttpBinding"
    bindingConfiguration="WcfSvcBasicHttpEndPoint" contract="WcfServiceLibrary.IStudent"
    name="WcfSvcBasicHttpEndPoint" />
  <endpoint address="http://xxx:8080/service/mex" binding="wsHttpBinding"
    bindingConfiguration="WcfSvcBasicMexHttpEndPoint" contract="WcfServiceLibrary.IStudent"
    name="WcfSvcBasicMexHttpEndPoint" />
  <endpoint address="net.tcp://xxx:8181/service" binding="netTcpBinding"
    bindingConfiguration="WcfSvcTcpEndPoint" contract="WcfServiceLibrary.IStudent"
    name="WcfSvcTcpEndPoint">
    <identity>
      <userPrincipalName value="User-PC\User" />
    </identity>
  </endpoint>
</client>



when I install the wcf service and run the client in the same computer-it run ok but in another computer it give my this message

what should I do that it will work?


thanks in advance.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900