WCF NetTcpBinding 文件传输

发布于 2024-11-10 13:15:54 字数 186 浏览 5 评论 0原文

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟若柳尘 2024-11-17 13:15:55

默认最大接收消息大小为 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文