我正在尝试通过 WCF 传输一些文件,但是一旦从客户端调用该方法,我就会收到以下消息:
The socket connection was aborted. This could be caused by an error processing
your message or a receive timeout being exceeded by the remote host, or an
underlying network resource issue. Local socket timeout was '00:10:00'.
我的方法包含在 a 中try...catch
,因此如果服务器上的方法中有任何抛出异常,它应该将其记录到控制台窗口,但不会记录任何内容。我还尝试在本地运行服务器并在该方法上设置断点,并且该方法似乎根本没有被调用。
是否需要在 net.tcp 连接上设置属性或其他内容以允许在客户端进行流式传输?