Home Forums ActiveX components Xceed FTP for ActiveX FtpClient.Connect on Windows Vista

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

    Hello Xceed

    I am using the Ftp library version 4.0 (Demo) and get this error when trying to connect to ftp server.

    “An invalid AsyncResult was received while executing a command.”

    My code is:

    http://ftp.Connect(strHost, 21) – where the strHost is ftp://www.xxxxxx.xx

    The same code works fine on a Windows XP machine.

     Kind regards

    Johnny E. Jensen

     

    Imported from legacy forums. Posted by Johnny (had 2330 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Johnny,

    Can you set the TraceWriter property so we can get a log of the communication with the server?

    FtpClient.TraceWriter = new StreamWriter( @”D:\ftp.log”, true );

    Can you also provide the relevant and complete code snippet that your are using to do the transfer?

    Imported from legacy forums. Posted by Mohamed [Xceed] (had 635 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Mohamed

    Sorry for taking so long a time. The trace log i empty so the error occourres under establishing the connection. My code is:

    ftp =

    new FtpClient();

    http://ftp.TraceWriter =

    new System.IO.StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)+ \\Winner CRM\\FtpClient.log);

    http://ftp.Connect(strHost, 21); The strHost is “ftp://www.mysite.dk

    ” (‘mysite’ is an alias for not making the real site public)

    if (http://ftp.Connected)

    {

    http://ftp.Login(strAccount, strPassword)

    http://ftp.ChangeCurrentFolder(

    “\\..”);

    }

    This is the errorexception i get:

    Xceed.Ftp.FtpInternalException: An invalid AsyncResult was received while executing a command.
       ved Xceed.Ftp.Engine.ConnectFtpCommand.EndExecute(IAsyncResult asyncResult)
       ved Xceed.Ftp.FtpClient.DoExecuteCommand(FtpCommandChannel commandChannel, BaseFtpCommand command)
       ved Xceed.Ftp.FtpClient.DoConnect(FtpCommandChannel commandChannel, ConnectFtpCommand command)
       ved Xceed.Ftp.FtpClient.Connect(String hostName, Int32 port)
       ved Aware.Winner.CRM.Desktop.Forms.formDesktop.CheckForUpdates()
       ved Aware.Winner.CRM.Desktop.Forms.formDesktop.mnuHelpUpdates_Click(Object sender, SmartItemClickEventArgs e)
       ved Xceed.SmartUI.SmartItem.OnClick(SmartItemClickEventArgs e)
       ved Xceed.SmartUI.Controls.MenuBar.MenuItem.OnClick(SmartItemClickEventArgs e)
       ved Xceed.SmartUI.SmartItem.InvokeOnClick(SmartItemClickEventArgs e)
       ved Xceed.SmartUI.SmartControl.InvokeItemClick(SmartItem item, ClickSource clickSource)
       ved Xceed.SmartUI.SmartControl.InvokeItemClick(SmartItem item, ClickSource clickSource)
       ved Xceed.SmartUI.SmartControl.OnMouseUp(MouseEventArgs e)
       ved System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       ved System.Windows.Forms.Control.WndProc(Message& m)
       ved System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       ved System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       ved System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
     

    Kind regards

    Johnny E. Jensen

    Imported from legacy forums. Posted by Johnny (had 3234 views)

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