把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服务时有没有用完立即关闭?参考 不要在using语句中调用WCF服务
您好,我这里并没有用到using代码块的。我贴下我的代码
请您查看下,是否有我问题
@孤独影: 你这是WCF服务端的代码吧?
@dudu: 嗯嗯 是的