NetTcpBinding() with TransferMode.Streamed
- by totem
Hi,
I am getting a timeout exception when trying to use a net tcp endpoint through code
that has no security and is streamed like so:
NetTcpBinding binding = new NetTcpBinding(SecurityMode.None);
binding.TransferMode = TransferMode.Streamed;
binding.SendTimeout = TimeSpan.MaxValue;
the same code would work if i just leave out the SecurityMode.None or choose SecurityMode.Transport, the exception is on a timeout that is too low, i tired adding all the timeouts for recive, send, open, close and set them all to Max and that didnt work.
im using sample code from:
http://csharp-codesamples.com/2009/02/data-transfer-using-self-hosted-wcf-service/
Any explenation as to how to use no security in this scenario would be appriciated.
Thanks,
Totem