Click here to Skip to main content
11,805,035 members (59,312 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# WCF C#4.0
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"
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
Edited 20-Sep-12 3:10am
(no name)143.6K

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

  Print Answers RSS
0 OriginalGriff 315
1 CPallini 210
2 Richard Deeming 200
3 Sergey Alexandrovich Kryukov 168
4 CHill60 150
0 OriginalGriff 3,255
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 20 Sep 2012
Copyright © CodeProject, 1999-2015
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