Groups > Web Hosting > IIS FTP > Re: sending zip file using ftp control




sending zip file using ftp control

sending zip file using ftp control
Tue, 1 Aug 2006 13:54:02 +0000
Hi everyone, i am new to asp.net and have recently been asked to fix a problem
with some code.

I am using a .dll called ftpsupport.dll to deal with the ftp upload. I have a
.txt file that is being compressed in to a .zip file (this is what is being sent
via ftp). I know that the information is all being zipped correctly however when
the file arrives at the other server the zip file is empty.

this is the code that sends the zip file.....

Try

Dim ftp As FtpConnection = New FtpConnection("servername",
"username", "password") 

If File.Exists(zipfolder & "\" & thisfilename &
".zip") Or File.Exists(emzipfolder & "\" &
emfilename & ".zip") Then

ftp.PutFile(zipfolder & "\" & thisfilename &
".zip", "/nucar/" & thisfilename & ".zip",
FtpTransferType.Binary)

ftp.PutFile(emzipfolder & "\" & emfilename &
".zip", "/nucar/" & emfilename & ".zip",
FtpTransferType.Binary)

EndIf

ftp.Close()

can anyone help with this problem? Has anyone used ftpsupport.dll, is it a
problem with that?
Post Reply
Re: sending zip file using ftp control
Tue, 1 Aug 2006 14:07:34 +0000
Have you checked a copy of the ZIP file before it's sent?  Does the ZIP open but
is empty or is it a zero byte file?  What do the FTP logs say?

Jeff
Post Reply
Re: sending zip file using ftp control
Tue, 1 Aug 2006 16:09:34 +0000
i have check the zip file before its sent, and all the correct information is in
the file. The zip arrives as a zero bite file. Stupid question but how do i view
the ftp log?
Post Reply
Re: sending zip file using ftp control
Tue, 1 Aug 2006 16:10:31 +0000
i have checked the zip file before its sent, and all the correct information is
in the file. The zip arrives as a zero bite file. Stupid question but how do i
view the ftp log?
Post Reply
Re: sending zip file using ftp control
Wed, 2 Aug 2006 03:45:00 +0000
First, have you enabled logging?  It's in the IIS control panel for the FTP
site, as is the pacth for the log, normally in the \\windows\system32\logfiles
folder in a FTP folder.

Jeff
Post Reply
<< Previous 1 2 Next >>
( Page 1 of 2 )
about | contact