WCF NetTcpBinding 文件传输
我使用 wcf nettcpbinding 传输文件(使用流式传输),但无法传输大于 650 MB 的文件。这是例外情况:“套接字连接被中止。这可能是由于处理消息时出错或远程主机超出接收超时,或者底层网络资源问题造成的。本地套接字超时为'19:59:59.9350000 '。”
我认为这不是超时问题,它们设置为小时。解决这个问题的一些想法?
I am using wcf nettcpbinding for transfering files (with streaming), and I can't transfer files larger than 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'."
I think it's not a timeout problem, they are set to hours. Some ideas to solve this??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
默认最大接收消息大小为 65536 字节,如果有人仅通过添加零来增加此值,655360000 它可以解释 650 MB 的限制。
另请参阅:http://setus。 blogspot.com/2009/01/how-to-sendreceive-large-data-in-wcf.html
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.
Also see: http://setus.blogspot.com/2009/01/how-to-sendreceive-large-data-in-wcf.html