I have written a file server/client using WCF (net.tcp) . Here is my problem:
While a client is uploading a file to the server, when I pull the ethernet cable at the client side my client gets an exception.(Which is obvious since i have disconnected the client from server).
Below is the Upload file function. The problem is i am not getting any exception at the server side at all. So i can not detect that there is a problem with the client side.
How can i understand that the file transfer is not complete ?
public string UploadToServer(Stream stream)
catch (Exception ex)
// Log operations here.