Hi all gurus,
I wrote an Win app with embedded FTP client (well, made some cut and paste
from others' projects :-)) to receive and send files from within the app
itself. Now the server I connect to from 1st Jan on will allow just
http/https connection, so I can no longer use FTP. I've thought to use
System.Net.WebClient class and SendFiles method, but when I try only obtain
a message, described later in datail. Can pls some1 point me to the right
direction? TIA
Error message follows:
"System.Net.WebException: An exception occurred during a WebClient
request. ---> System.IO.IOException: Unable to write data to the transport
connection. ---> System.Net.Sockets.SocketException: Connessione in corso
interrotta forzatamente dall'host remoto
at System.Net.Sockets.Socket.EndSend(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndWrite(IAsyncRe sult asyncResult)
--- End of inner exception stack trace ---
at System.Net.ConnectStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.Write(Byte[] buffer, Int32 offset, Int32
size)
at System.Net.WebClient.UploadFile(String address, String method, String
fileName)
--- End of inner exception stack trace ---
at System.Net.WebClient.UploadFile(String address, String method, String
fileName)
at System.Net.WebClient.UploadFile(String address, String fileName)
at WebApplication1.WebForm1.Button1_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\WebApplication1\WebForm1.aspx.v b:line 31" String".