简体   繁体   English

WCF NetTcpBinding 文件传输

[英]WCF NetTcpBinding file transfer

I am using wcf nettcpbinding for transfering files (with streaming), and I can't transfer files larger than 650 MB.我正在使用 wcf nettcpbinding 传输文件(带流式传输),我无法传输大于 650 MB 的文件。 This is the exception: "The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '19:59:59.9350000'."这是例外:“套接字连接已中止。这可能是由于处理您的消息时出错或远程主机超出接收超时,或底层网络资源问题。本地套接字超时为'19:59:59.9350000 ’。”

I think it's not a timeout problem, they are set to hours.我认为这不是超时问题,它们设置为小时。 Some ideas to solve this??解决这个问题的一些想法?

The default max received message size is 65536 bytes, if someone has increased this value just by adding zeros, 655360000 it could explain the 650 MB limit.默认的最大接收消息大小是 65536 字节,如果有人通过添加零来增加这个值,655360000 它可以解释 650 MB 的限制。

Also see: http://setus.blogspot.com/2009/01/how-to-sendreceive-large-data-in-wcf.html另请参阅: http://setus.blogspot.com/2009/01/how-to-sendreceive-large-data-in-wcf.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM