Home Forums .NET libraries Xceed SFTP/FTP for .NET Xceed FTP for .NET throwing error when trying to access file for upload

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

    Hi,

    We are using your FTP for .NET component and everything was working fine until a recent update was applied and now we keep getting an error that the file doesn’t exist when we know 100% for sure it does exist. In fact, we use the Xceed ZIP for .NET component to generate the Zip file we intend to upload to the remote Ftp server. Here is the exception:

    Xceed.Ftp.FtpInternalException: Unexpected exception while processing an FTP command. —> Xceed.FileSystem.ItemDoesNotExistException: Cannot perform the requested operation on an item that does not exist.

    Type: Xceed.FileSystem.DiskFile

    FullName: \\CG-DB05\e$\Export\Director\STAC\12082008\export\STAC_0809_SERV_D000000_20081208.zip
       at Xceed.FileSystem.AbstractFile.get_Size()
       at Xceed.Ftp.Engine.BaseStoreFileFtpCommand.get_LocalFileSize()
       at Xceed.Ftp.Engine.SendFileFtpCommandSequence.OnCommandStarting(BaseFtpCommand command)
       at Xceed.Ftp.Engine.FtpCommandSequence.ExecuteNextCommand()
       at Xceed.Ftp.Engine.FtpCommandSequence.CommandCompleted(IAsyncResult asyncResult)
       — End of inner exception stack trace —
       at Xceed.Ftp.Engine.FtpCommandSequence.EndExecute(IAsyncResult asyncResult)
       at Xceed.Ftp.FtpClient.SendFile(FtpCommandChannel commandChannel, SendFileFtpCommandSequence sendSequence)
       at Xceed.Ftp.FtpClient.SendFile(String localFilename)
       at Centris.IEPDirect.STAC.STACManager.FTPFile()

    Any help on this error would be greatly appreciated.

    -A

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Arnold (had 3387 views)

    User (Old forums)
    Member
    Post count: 23064

    We can’t really tell just by looking at the exception in this case.  Can you provide a code snippet of what you are doing?

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by André (had 447 views)

    User (Old forums)
    Member
    Post count: 23064

    hi,

    we experience the same probleme since december 2008. the code snipped from our program is:

        try
        {
         result = http://ftp.BeginGetFolderContents(“”,null,null);
         while (!result.IsCompleted)
         {
          Application.DoEvents();
         }
         http://ftp.Timeout = StdTimeout;
         recvfiles = http://ftp.EndGetFolderContents(result);
        }
        catch (Exception x)
        {
         Error(“Fehler beim Lesen des Benutzerverzeichnisses auf dem FTP-Server.\n\n”+x.Message+”\n”,true);
        }

    the program works fine since 2004 on about 3000 computers. we have the problem only since december 2008.

    best wishes

    rolf

     

     

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Rolf (had 3215 views)

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