469,908 Members | 2,219 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,908 developers. It's quick & easy.

sending files via http/https

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".
Nov 21 '05 #1
0 1315

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Michael Evanchik | last post: by
9 posts views Thread by Michael Evanchik | last post: by
8 posts views Thread by Daniel Crespo | last post: by
3 posts views Thread by ABCL | last post: by
12 posts views Thread by Aggelos | last post: by
5 posts views Thread by lanclot | last post: by
4 posts views Thread by =?Utf-8?B?RGF2ZQ==?= | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.