NetTcpBinding() with TransferMode.Streamed

Posted by totem on Stack Overflow See other posts from Stack Overflow or by totem
Published on 2010-03-14T12:04:16Z Indexed on 2010/03/14 12:15 UTC
Read the original article Hit count: 496

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about wcf

Related posts about c#