Click here to Skip to main content
14,661,076 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have developed WCF windows service using net tcp binding. Its working fine when wcf client and wcf service both are in domain (in two different system)

Getting error when both system are in work group not in domain
please suggest what configuration i need to change .

Error :System.ServiceModel.CommunicationException: 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:29:59.9687496'. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

I am using Certificate authentication and Message instead of Transport


What I have tried:

Increasing the timeouts, setting security mode to none
Posted
Updated 17-Sep-20 18:40pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Quote:
Local socket timeout was '00:29:59.9687496'

You are hitting timeout of 30 min.

Don't think an operation whould be that long and thus mostly configuration based issue where a client not able to talk cross domain.

Look at these similar discussion for configuration settings:
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 | www.code-geek.com[^]
WCF Windows Service Using NetTCPbinding[^]
net.tcp wcf service (windows service hosted) in domain server and client outside of domain - Stack Overflow[^]
Socket Exception - WCF[^]
   
Comments
Member 14724056 18-Sep-20 15:23pm
   
I have looked at those links and they weren't much help

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




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