I am using netcfsvcutil.exe to generate WCF proxy code on my mobile device (Pocket PC 4.2 running .net CF 3.5) to communicate to my WCF Service.
Everything works well until the remote device gets disconnected from the network (for example, the DHCP server goes down and it reverts to an invalid default IP).
At this point, any calls to my service will block indefinitely. This problem does not occur if say the remote service is disabled, rather only if there is some network issue on the client.
The source of this problem seems to be the call to requestChannel.Request(msg) in the getReply() method in the CFClientBase class will block forever. I have tried adding a timeout to it to no avail. I also find it odd that the call to open() doesn't throw
an exception and sets the state to open.
I am new to WCF and can't get past this problem, any help would be appreciated.
Here is the generated method in question:
private System.ServiceModel.Channels.Message getReply(System.ServiceModel.Channels.Message msg)
if ((this.RequestChannelFactory == null))
// transport doesn't support requests
throw new System.NotSupportedException();
requestChannel = th
View Complete Post