Subject: SFTP directory issues
Date: 2014-04-02 17:54:20
From: Matthew Swyrydenko
Source: sftp-directory-issues
----------------------------------------------------------------------

I have a trial version of the sftp components.

 

I'm not sure how to turn on logging.

 

Basically I set the directory

client.SetCurrentDirectory("users/sftp-username/product/Production/FromClient");

and when I go to check and make sure it changed.  I get the same error when I attempt to download the file.  I get a zero byte file and I get an error that says "Folder not found (Path/filename)"

MessageBox.Show(client.GetCurrentDirectory());

I get this error:

ComponentPro.Net.SftpException was unhandled
  HResult=-2146233088
  Message=Failure; Folder not found: /product/production/Fromclient.
  Source=ComponentPro.Sftp
  Transferred=0
  StackTrace:
       at c_BJA.c_KXQ(c_HG c_A1D, Type c_LBC)
       at c_BJA.c_OVQ(String c_FDC)
       at ComponentPro.Net.Sftp.c_XUQ(c_BJA c_U7H, String c_FDC, SearchCondition c_TTH, c_YIA& c_GDC)
       at ComponentPro.Net.Sftp.c_HVQ(String c_FDC, SearchCondition c_TTH, Boolean c_TAI, Object c_JBB)
       at ComponentPro.Net.Sftp.ListDirectory()
       at SFTP_Test.Form1.button1_Click(Object sender, EventArgs e) in C:\Users\s\documents\visual studio 2010\Projects\SFTP_Test\SFTP_Test\Form1.cs:line 302
       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(IntPtr 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 SFTP_Test.Program.Main() in C:\Users\s\documents\visual studio 2010\Projects\SFTP_Test\SFTP_Test\Program.cs:line 18
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly 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.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:
 

 

---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index