Click here to Skip to main content
11,494,407 members (62,092 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# WCF .NET4
netTcpBinding in my service app.config has security mode set to ‘None’and that is working fine.Now when I change it to the default mode of nettcpbinding i.e.Mode=Transport and clientCredentialType="Windows", I get following exception in GUI project while connecting to the this service

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:00:59.6982306'.

I viewed service trace in trace viewer and that showed the following error message: The message with To 'net.tcp://localhost:9200/MyService/mex/mex' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver's EndpointAddresses agree. if I create a new service with a nettcpendpoint having default transport security, that works fine.

If anybody has any idea about this, please let me know. I start getting error as soon as i change security mode = Transport, but for any new application this is the default mode and new application works fine.
App.config(working fine)
<binding name="tcpBinding" portSharingEnabled="true">
                   <security mode="None">
                       <transport clientCredentialType="None" protectionLevel="None" />
                       <message clientCredentialType="None"/>
                   </security>
 
when i change it to following, i start getting error:
 <binding name="tcpBinding" portSharingEnabled="true">
                    <security mode="Transport">
                        <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
                        <message clientCredentialType="None"/>
                    </security>
                </binding>
               </binding>
Posted 13-Oct-12 8:29am
Edited 13-Oct-12 9:44am
(no name)114K
v2

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

  Print Answers RSS
0 Dnyaneshwar@Pune 740
1 Sergey Alexandrovich Kryukov 443
2 CHill60 350
3 Nakul Chaudhari 236
4 OriginalGriff 221
0 Sergey Alexandrovich Kryukov 10,277
1 OriginalGriff 8,805
2 Sascha Lefèvre 3,704
3 Maciej Los 3,392
4 Richard Deeming 2,500


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 13 Oct 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