我试图通过WCF传输一些文件,但只要从客户端的方法被调用时,我得到以下信息: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'.
我的方法是裹着try...catch
,所以如果在服务器上的方法中有任何引发异常的情况,它应该将其记录到控制台窗口,但是没有记录。我也曾尝试在本地运行服务器并在该方法上设置断点,并且该方法似乎并没有被调用。
是否有一个属性或需要在net.tcp连接上设置以允许在客户端进行流式传输?