Witam , zrobilem aplikacje duplex WCF. Na lokalnym komputerze client - server dziala OK ale jak dam klienta na inny komputer to pisze The server has rejected the client credentials . Jak dodam <security mode="None" /> do konfiguracji to zas wyskakuje blad The socket connection was aborted :| Jest w stanie mi ktos pomoc?
Konfiguracja servera :
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service name ="WCFService.ServiceClass" behaviorConfiguration="metadataSupport">
<endpoint contract ="WCFService.IServiceClass"
name="NetTcpBinding_IServiceClass"
binding ="netTcpBinding"
address ="net.tcp://localhost:8000/TcpBinding"/>
<endpoint address="net.tcp://localhost:8000/TcpBinding/tcpmex"
binding="mexTcpBinding"
contract="IMetadataExchange"/>
</service>
</services>
<bindings>
<netTcpBinding>
<binding name ="NetTcpBinding_IServiceClass">
<security mode="None"></security>
</binding>
</netTcpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="metadataSupport">
<serviceMetadata httpGetEnabled="false" httpGetUrl=""/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
Konfiguracja klienta :
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="NetTcpBinding_IServiceClass" closeTimeout="00:10:00"
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
maxReceivedMessageSize="65536">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="None"></security>
</binding>
</netTcpBinding>
</bindings>
<client>
<endpoint address="net.tcp://192.168.1.64:8000/TcpBinding" binding="netTcpBinding"
bindingConfiguration="NetTcpBinding_IServiceClass" contract="ServiceReference1.IServiceClass"
name="NetTcpBinding_IServiceClass">
<identity>
<userPrincipalName value="diseasex-PC\diseasex"/>
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>