流式传输 + netTcpBinding = 不支持成帧模式?

发布于 2024-08-05 11:40:34 字数 379 浏览 4 评论 0原文

谁能解释一下这个错误的含义:

正在使用的.Net Framing模式是 不支持等等等等

我找不到任何有价值的信息。异常表明要检查服务器日志,但是我在其中找不到与此错误相关的任何内容。我不知道“框架模式”到底是什么,否则我会尝试不同的框架模式。

我想做的是创建一个 TCP WCF 端点以将 Stream 发送到客户端。


这是界面(原型):

[ServiceContract]
public interface IXpsService
{
    [OperationContract]
    Stream GetCurrentDocument();
}

Can anybody explain what this error means:

The .Net Framing mode being used is
not supported by blah blah yadda

I can't find any info worthwhile. The exception says to check the server logs, however I can't find anything in them relating to this error. I don't know what the hell a "framing mode" is, otherwise I'd try different framing modes.

What I'm trying to do is to create a TCP WCF endpoint to send a Stream to the client.


Here's the interface (prototyping):

[ServiceContract]
public interface IXpsService
{
    [OperationContract]
    Stream GetCurrentDocument();
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

习ぎ惯性依靠 2024-08-12 11:40:34

发生此错误的原因之一是客户端和服务器的配置不匹配。

默认为缓冲,如果设置为流式,当它们尝试相互通信时,您会收到帧错误。

它认为缓冲尝试发送的每批数据都是一个帧。

One of the ways this error occurs is if there is a mismatch in the configuration of the client and the server.

The default is buffered, if one is set to streaming, when they try to talk to each other you get a framing error.

It thinks that each batch of data that the buffered tries to send over is a frame.

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