Connect Method Problem - Syntax error, command u - WeOnlyDo Discussion board

Connect Method Problem - Syntax error, command u (General questions)

by Damian Jolly, Friday, September 19, 2008, 07:08 (5909 days ago)

Hi,

I'm doing a service call on an exiting system that uses the wodFtpDLX.dll inside a VB Script. The system has suddenly stopped working and generates a Syntax error, command unrecognized Code: 800A9E34 when the CONNECT method is called.

The system has been working for over 12 months and has suddenly stopped working.

Here is an extract of the VB Script.

nFilesUploaded = 0
objFTP.LicenseKey = ****-****-****-****
objFTP.Hostname = ftps.******.com
objFTP.Login = userid
objFTP.Password = password
objFTP.Protocol = 3
objFTP.Blocking = 1
objFTP.Connect
objFTP.RemotePath = dropof
objFTP.TransferMode = 0
Set folder = ObjFSO.GetFolder(sFolder)
Set files = folder.Files
For each folderIdx In files
objFTP.PutFile sFolder & folderIdx.Name, dropof & userid & _ & folderIdx.Name
wscript.echo Uploading file: & folderIdx.Name
nFilesUploaded = nFilesUploaded + 1
Set fDelete = objFSO.GetFile(sFolder & folderIdx.Name)
fDelete.delete
Next
wscript.echo Total Files uploaded: & nFilesUploaded
SessFile.WriteLine( Total Files uploaded: & nFilesUploaded)

objFTP.Disconnect
Set objFTP = Nothing

wscript.echo End of FTP Upload session.
sessFile.WriteLine
sessFile.WriteLine( Finishing FTP Upload session at & now())

Set sessFile = Nothing
Set objFSO = Nothing

Re: Connect Method Problem -

by wodDamir, Friday, September 19, 2008, 09:06 (5909 days ago) @ Damian Jolly

Hi Damian,

I don't see why that code would fail. I've tried it on my side and it works like a charm. What version of the component are you using?

Did you perhaps update the component lately?

Can you try commenting out the LicenseKey property? What happens in that case?

Regards,
Damba

Re: Connect Method Problem -

by Damian Jolly, Friday, September 19, 2008, 09:37 (5909 days ago) @ wodDamir

Thank you so much Damba for your prompt reply.

I have organised for the server to be rebooted over the week end, and am hopeful that that will address the issue.

It looks like the developer left the development version of the DLL on site, because when I dissable the License property, I get a GUI pop up informing me that he product is un-licensed.

Is there a re-distribute version of the DLL that I can use?

Cheers

Damian

Re: Connect Method Problem -

by wodDamir, Friday, September 19, 2008, 09:57 (5909 days ago) @ Damian Jolly

Damian,

Actually, the license key suggestion was so that we could see if perhaps that causes the problem, in case you were using demo instead of licensed version, but it doesn't look like that.

The dll's received with the component when you purchased it are re-distributable. All you need to do is set LicenseKey property (as you do) and distribute the dll's.

When you restart the machine, please let us know if that had any effect.

Regards,
Damba