流式传输 + netTcpBinding = 不支持成帧模式?
谁能解释一下这个错误的含义:
正在使用的.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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发生此错误的原因之一是客户端和服务器的配置不匹配。
默认为缓冲,如果设置为流式,当它们尝试相互通信时,您会收到帧错误。
它认为缓冲尝试发送的每批数据都是一个帧。
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.