NetTcpBinding与Streaming和Session [英] NetTcpBinding with Streaming and Session
本文介绍了NetTcpBinding与Streaming和Session的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试 set up a WcfService 使用 < span class =code-leadattribute> NetTcpBinding 。 我 使用 转移 mode 流式 ,因为 我 transfer large 文件。 我 需要 使用 会话,和 我 读 NetTcpBinding 支持 此,但是 I 转 它 如:
SessionMode = SessionMode。必需
我 get 错误:
系统。 InvalidOperationException: < span class =code-leadattribute>合同 需要 会话,但是 绑定'NetTcpBinding'不支持 它 或不是已配置 正确 support it 跨度>。
任何人 知道 什么 我 to do to make NetTcpBinding work with 会话? 谢谢 any help
解决方案
你能帮助我吗?谢谢
你能帮我吗?感谢
I’m trying to set up a WcfService with the use of NetTcpBinding. I use Transfer mode Streamed since I will transfer large files. I need to use Session, and I have read that NetTcpBinding supports this, but when I turn it on like:
SessionMode=SessionMode.Required
I get the error:
System.InvalidOperationException: Contract requires Session, but Binding 'NetTcpBinding' doesn't support it or isn't configured properly to support it.
Does anyone know what I have to do to make NetTcpBinding work with sessions? Thanks for any help
解决方案
can you help me. Thanks
can you help me. Thanks
这篇关于NetTcpBinding与Streaming和Session的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文