首页 新闻 会员 周边

小白,遇上WCF的一个错误,求园内大神指点!!!

0
悬赏园豆:5 [已解决问题] 解决于 2019-10-23 15:31

把WCF做成了服务,在日志中报如下的错误:

This channel can no longer be used to send messages as the output session was auto-closed due to a server-initiated shutdown. Either disable auto-close by setting the DispatchRuntime.AutomaticInputSessionShutdown to false, or consider modifying the shutdown protocol with the remote server.

WCF
孤独影的主页 孤独影 | 初学一级 | 园豆:1
提问于:2018-03-29 15:51
< >
分享
最佳答案
0

客户端调用WCF服务时有没有用完立即关闭?参考 不要在using语句中调用WCF服务

收获园豆:5
dudu | 高人七级 |园豆:30994 | 2018-03-29 16:19

您好,我这里并没有用到using代码块的。我贴下我的代码

请您查看下,是否有我问题

 

 

孤独影 | 园豆:1 (初学一级) | 2018-03-29 17:47

@孤独影: 你这是WCF服务端的代码吧?

dudu | 园豆:30994 (高人七级) | 2018-03-29 17:52

@dudu: 嗯嗯  是的

孤独影 | 园豆:1 (初学一级) | 2018-03-29 17:54
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册