我試圖通過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連接上設置以允許在客戶端進行流式傳輸?