Upload file to server from windows application
-
Hi all, I'm trying to write some code to upload files from the machine where the windows application is installed to a server, for example from "C:\MyFolder\file.wav" to "http://ip/Project/folder/file.wav". I tried: WebClient objClient = new WebClient(); objClient.UploadFile(ServerURL, LocalFile); but it always give me this exception: An exception occurred during a WebClient request. InnerException = {"Unable to write data to the transport connection: An established connection was aborted by the software in your host machine."} Any idea? Thanks.
-
Hi all, I'm trying to write some code to upload files from the machine where the windows application is installed to a server, for example from "C:\MyFolder\file.wav" to "http://ip/Project/folder/file.wav". I tried: WebClient objClient = new WebClient(); objClient.UploadFile(ServerURL, LocalFile); but it always give me this exception: An exception occurred during a WebClient request. InnerException = {"Unable to write data to the transport connection: An established connection was aborted by the software in your host machine."} Any idea? Thanks.
-
If you don't have a firewall installed, the windows firewall is probably running. Look in the security center on the control panel, and see if the windows firewall is running. If so, add the port you are using to the exclusions list and try it again.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet. "If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer