On Jun 8, 11:13 am, Peter Smith <[email protected]> wrote:
>
> And where does it seem to not work, when you debug and step through the code?

System.IO.IOException was unhandled
  Message="Unable to write data to the transport connection: An
established connection was aborted by the software in your host
machine."
  Source="System"
  StackTrace:
       at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32
offset, Int32 size)
       at System.Net.FtpDataStream.Write(Byte[] buffer, Int32 offset,
Int32 size)
       at FTPUploader.Form1.uploadFile(String FTPAddress, String
filePath, String username, String password) in C:\Users\themind\Desktop
\FTPuploader\Form1.cs:line 57
       at FTPUploader.Form1.btnUpload_Click(Object sender, EventArgs
e) in C:\Users\themind\Desktop\FTPuploader\Form1.cs:line 73
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m,
MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage
(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc
(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr
hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW
(MSG& msg)
       at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop
(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner
(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop
(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at FTPUploader.Program.Main() in C:\Users\themind\Desktop
\FTPuploader\Program.cs:line 17
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String
[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile,
Evidence assemblySecurity, String[] args)
       at
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object
state)
       at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.Net.Sockets.SocketException
       Message="An established connection was aborted by the software
in your host machine"
       Source="System"
       ErrorCode=10053
       NativeErrorCode=10053
       StackTrace:
            at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32
offset, Int32 size, SocketFlags socketFlags)
            at System.Net.Sockets.NetworkStream.Write(Byte[] buffer,
Int32 offset, Int32 size)
       InnerException:

Reply via email to