NetTcpBinding与Streaming和Session [英] NetTcpBinding with Streaming and Session

查看:52
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆