Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #21478 |

    Hi  

     

    I am facing some issue wirh xceed SFTP.

    When I downloading a file from a SFTP share.  An getting below error in CopyFilesTo method .

     

      

    My code :

    SSHClient SSHClient = new SSHClient();

                SSHClient.Connect(“XXXXXXXXX.com”, 11422);

                SSHClient.Authenticate(“XXXXXX”, “XXXXXXXX”);

               // SSHClient.Authenticate(“”, “”);

               

                using (SFtpConnection connection = new SFtpConnection(SSHClient))

                {

                   

                    SFtpFolder source = new SFtpFolder(connection);

                    AbstractFolder firstFolder = source.GetFolder(@”get”);

                   

                        

                        DiskFolder destination = new DiskFolder(“E:\\Sftp_download”);

                      

                        firstFolder.CopyFilesTo(destination, true, true);   

                }

     

     

    Xceed.FileSystem.FileSystemInternalException was unhandled

      Message=An unexpected internal failure occurred in the FileSystem component, or one of its descendants.

    Type: Xceed.SSH.Client.SFtpFile

    FullName: \get\New

      Source=Xceed.FileSystem

      StackTrace:

           at Xceed.FileSystem.AbstractFile.OpenRead(FileSystemEvents events, Object userData, FileShare share)

           at Xceed.FileSystem.AbstractFile.DoCopyTo(FileSystemEventsSession session, FileSystemItem destination, Boolean replaceExistingFiles)

           at Xceed.FileSystem.FileSystemItem.ListCopyToCore(FileSystemEventsSession session, ItemPair currentItemPair, Boolean replaceExistingFiles)

           at Xceed.FileSystem.FileSystemItem.ListCopyTo(FileSystemEventsSession session, Boolean replaceExistingFiles)

           at Xceed.FileSystem.AbstractFolder.CopyItemsTo(FileSystemEvents events, Object userData, AbstractFolder destinationFolder, Boolean recursive, Boolean includeFolders, Boolean replaceExistingFiles, Object[] filters)

           at Xceed.FileSystem.AbstractFolder.CopyFilesTo(AbstractFolder destinationFolder, Boolean recursive, Boolean replaceExistingFiles, Object[] filters)

           at SFTP_POC.Form1.button6_Click(Object sender, EventArgs e) in C:\Users\v-kaluma\Desktop\SFTP_POC\SFTP_POC\Form1.cs:line 246

           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_POC.Program.Main() in C:\Users\v-kaluma\Desktop\SFTP_POC\SFTP_POC\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.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

           at System.Threading.ThreadHelper.ThreadStart()

      InnerException: Xceed.SSH.Core.SSHTimeoutException

           Message=ReceivePayload() has timed out after 30000ms waiting for ChannelDataPayload

           Source=Xceed.SSH.Core

           Timeout=30000

           StackTrace:

                at Xceed.SSH.Core.SSHPacketIOManager.ReceivePayload(Predicate`1 match, Boolean wait, Type[] payloadTypes)

                at Xceed.SSH.Core.SSHPacketIOManager.ReceivePayload(Predicate`1 match, Type[] payloadTypes)

                at Xceed.SSH.Protocols.SSHConnectionProtocol.ReceiveChannelPayload(SSHPacketIOManager packetIOManager, Int32 channelNumber, Type[] payloadTypes)

                at Xceed.SSH.Client.SFtpPacketIOStreamStream.Read(Byte[] buffer, Int32 offset, Int32 count)

                at System.IO.Stream.ReadByte()

                at Xceed.SSH.Core.SSHUInt32.Read(Stream stream)

                at Xceed.SSH.Client.SFtpPacketProcessor.Xceed.SSH.Core.ISSHPacketReceiver.ReadPacket(IEnumerator`1 enumerator, Stream stream, Int32& packetLength, SSHPacket& packet, Int32& count)

                at Xceed.SSH.Client.SFtpPacketIOManager.ReceivePayloadCore()

                at Xceed.SSH.Client.SFtpPacketIOManager.ReceivePayload(Predicate`1 match, Type[] payloadTypes)

                at Xceed.SSH.SFtp.SFtp.ReceiveRequestPayload(Int32 requestID, Type[] payloadTypes)

                at Xceed.SSH.SFtp.SFtp.OpenFile(String path, Attrs attributes, AccessFlags desiredAccess, OpenFileFlags flags)

                at Xceed.SSH.Client.SFtpClient.OpenRead(String path, FileShare share)

                at Xceed.SSH.Client.SFtpFile.DoOpenRead(FileSystemEventsSession session, FileShare share)

                at Xceed.FileSystem.AbstractFile.OpenRead(FileSystemEvents events, Object userData, FileShare share)

           InnerException:

    Applies to Xceed SFTP for .NET. Imported from legacy forums. Posted by kishan (had 1310 views)

    Diane [Xceed]
    Moderator
    Post count: 1353

    This issue is being handled offline through email support. The developer is working on a fix that should be included in a future release (it will not be ready in time for the next release, so it will be in the next one after).

    In the meantime, latest notes and beta releases are available here:
    http://xceed.com/CS/forums/thread/32885.aspx

    Applies to Xceed SFTP for .NET. Imported from legacy forums. Posted by Diane [Xceed] (had 983 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.