Click here to Skip to main content
15,561,817 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am getting Exception as

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 10675199.02:48:05.4775807

My Setting for hosting is

((NetTcpBinding)MyBinding).Security.Mode = SecurityMode.None;
((NetTcpBinding)MyBinding).SendTimeout = TimeSpan.MaxValue;
((NetTcpBinding)MyBinding).ReceiveTimeout = TimeSpan.MaxValue;
((NetTcpBinding)MyBinding).OpenTimeout = TimeSpan.MaxValue;
((NetTcpBinding)MyBinding).CloseTimeout = TimeSpan.MaxValue;
((NetTcpBinding)MyBinding).MaxBufferSize = int.MaxValue;
((NetTcpBinding)MyBinding).MaxReceivedMessageSize = int.MaxValue;
((NetTcpBinding)MyBinding).PortSharingEnabled = true;
((NetTcpBinding)MyBinding).TransferMode = TransferMode.Buffered;
((NetTcpBinding)MyBinding).ListenBacklog = 10;
((NetTcpBinding)MyBinding).MaxConnections = 100;
((NetTcpBinding)MyBinding).TransactionProtocol = TransactionProtocol.OleTransactions;

1 solution

Similar question solved
Socket Exception - WCF[^]
Share this answer

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