My client proxy is generated using a configuration file. For most operations in my WCF service the deafault sendTimeout of 1 minute is sufficient. However, I need to increase this for one particular operation.
I try to change this programmatically as follows:
_dstServiceProxy.ChannelFactory.Endpoint.Binding.SendTimeout = TimeSpan.FromMinutes(10);
but it has no effect - I get a TimeoutException. I've checked out the SendTimeout value in the debugger and it has been set to the desired 10 minutes but it doesn't seem to have been accepted by the proxy.
Any ideas why this isn't working?