Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: FTP Store method crashes VB6 app
lledden
lledden@famtech.com

From: Portland, NY USA
Posts: 8
Member Since: 08/18/10
posted August 24, 2010 10:43 AM

I have a little vb6 utility that uploads files to a server. The app has been working reliably for many users for many years. I updated DartFTP.dll recently and now this utility crashes with no error message when the FTP.Store method is executed. The Store is preceded several commands to create folders, and those all work fine. Any suggestions as to what to look for would be Much appreciated.

dFtp.MakeDirectory tbkfolder & "/temp"
On Error GoTo errOut
dFtp.SendBufferSize = 256000
lStatus.AddItem "Uploading file."
dFtp.StoreType = storeReplace
dFtp.Store tbkfolder & "/temp", bkFileName

Dartnostics...
2.10.0.1       C:\WINDOWS\system32\DartCertificate.dll
2.1.0.1       C:\WINDOWS\system32\DartFtp.dll
2.1.0.1       C:\WINDOWS\system32\DartSecure2.dll
2.9.0.0       C:\WINDOWS\system32\DartSock.dll
2.8.0.4       C:\WINDOWS\system32\DartUtil.dll
1.8.0.4       C:\WINDOWS\system32\DartWeb.dll
1.9.0.0       C:\WINDOWS\system32\DartZip.dll
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 25, 2010 9:35 AM

Hello,

We are unable to reproduce this locally; are you able to upload a file to your server using our included FTP Listview sample? You may want to output the trace to a logfile to examine. Do you find the same issue when you try to upload a file to some other ftp server?
What OS are you running? Do you have any firewall or AV active?

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

lledden
lledden@famtech.com

From: Portland, NY USA
Posts: 8
Member Since: 08/18/10
posted August 27, 2010 1:10 PM

Thanks for your response. I am able to upload a file using the FTP Listview sample. I have compared the code between that sample and my application and have made adjustments. Now my app does not crash, but it also does not do a file upload. It returns an error 500 'MODE C': command not understood. I've searched for this message but can't find any thing that could give me a clue as to what to look for.
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 27, 2010 2:06 PM

Hello,

I apologize for not catching this before, you do not appear to be specifying the remote filename, just the folder you are uploading to.

If that does not help, what are the values of the variables you are using?

Do you know what was causing the crash?

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

lledden
lledden@famtech.com

From: Portland, NY USA
Posts: 8
Member Since: 08/18/10
posted August 30, 2010 9:31 AM

Thanks for your response. When comparing my code to the Listview sample I noticed that several properties were being set in Listview that I did not set, just as Type, Passive, and some others. I set all these params in my code, and the app no longer crashes at the Store. Now it simply aborts with the error message
500 'MODE C': command not understood. 
For this last test, my params are...

dFtp.Store tbkfolder & "/temp.zip", bkFileName
tbkfolder = "NNLALE0002/backup"
bkfilename = "D:\aV5\AV5Basic\IRestore_Storsve_with_multimedia_20080829.zip"

I can't understand why my app returns this error and the Listview sample does not.
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 30, 2010 10:42 AM

Hello,

It seems as though you're setting the TransferMode property to ftpCompressed, which your server does not support (MODE C: Compression Mode).

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

lledden
lledden@famtech.com

From: Portland, NY USA
Posts: 8
Member Since: 08/18/10
posted August 31, 2010 10:23 AM

Thanks very much for your help. My app is working again.
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX