I created a self hosted WCF service with netTcpBinding. I am using a WinForm based client to connect to this service. I have observed that while the client is up and running, I always lose connection to the WCF service - faulted state!.
To resolve this, I created a thread to keep the connection alive. I let the client sit and, after about a week, found an error message in my logs : TCP connection error 10061 - client was refused connection. The keep alive thread cannot recreate the connection object - the logs still display "connection refused".
In my configuration file for the service host, I have a base address but no endpoint address. MSDN says that the when no endpoint address is given, the endpoint address becomes the base address when the Open method is called.
Do I still need to give an endpoint address to resolve the "TCP connection refused" issue?
Thanks in advance for any advice.