Click here to Skip to main content
13,199,852 members (73,468 online)
Rate this:
Please Sign up or sign in to vote.
See more:
cofig page of host service
<?xml version="1.0" encoding="utf-8" ?>
                <behavior name="WCFServiceHost_DAS.MyServiceBehavior">
                    <serviceMetadata httpGetEnabled="false" />
                    <serviceDebug includeExceptionDetailInFaults="false" />
            <service behaviorConfiguration="WCFServiceHost_DAS.MyServiceBehavior"
                <endpoint address="" binding="netTcpBinding" bindingConfiguration=""
                    name="NetTcpBindingEndpoint" contract="WCFServiceHost_DAS.IMyService">
                        <dns value="localhost" />
                <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
                    name="MexTcpBindingEndpoint" contract="IMetadataExchange" />
                        <add baseAddress="net.tcp://" />

config page of client service
<?xml version="1.0" encoding="utf-8" ?>
               <binding name="NetTcpBindingEndpoint" closetimeout="00:01:00">
                    openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                    transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
                    hostNameComparisonMode="StrongWildcard" listenBacklog="10"
                    maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
                    <readerquotas maxdepth="32" maxstringcontentlength="8192" maxarraylength="16384">
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                    <reliablesession ordered="true" inactivitytimeout="00:10:00">
                        enabled="false" />
                    <security mode="None">
                        <transport clientcredentialtype="Windows" protectionlevel="EncryptAndSign" />
                        <message clientcredentialtype="Windows" />
            <endpoint address="net.tcp://">
                binding="netTcpBinding" bindingConfiguration="NetTcpBindingEndpoint"
                contract="ServiceReference1.IMyService" name="NetTcpBindingEndpoint">
                    <dns value="localhost" />

I have got exception when I used the service on different pc of same network.

Exceptions are

1. A remote side security requirement was not fulfilled during authentication. Try increasing the ProtectionLevel and/or ImpersonationLevel.

when I use security mode="Transport"

2. The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:01:00'.

when I use security mode="None"

on client config page. Plz help me.
Posted 20-Sep-12 0:51am

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171020.1 | Last Updated 20 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100