Executing CuteFTP with the NAS

DHendriksenDHendriksen Member Posts: 32
Hi all,

Does anybody have experience with the use of CuteFTP (or similar) and the NAS?

For a customer we use a NAV communication module (our company add-on) for several communication types (File, MSMQ, FTP, etc.) We can use this communication module in the NAV client (with GUI) and the NAS (without GUI).

Now we have the following problem. The process is that a codeunit generates an XML files, saves the file on the local client machine, start the CuteFTP process and connect to the FTP server, transfers the file and disconnect from the FTP server.
This process works very stable and fine within the NAV client (with GUI). Some tests show us that transferring more than 4000 files will not generate any error. But when we use the same process with the NAS we get several errors that the Automation could not be created. The NAs will hangup itself. Even stopping the NAS doesn’t work anymore, we have to kill the process.

We use CuteFTp because of the Automation which can be used in Dynamics NAV:
gAutCuteFTP Automation 'CuteFTPPro 8.3 Type Library'.TEConnection

Has anyone of you any idea why the CuteFTP process doesn’t work proper when used in an service environment (NAS)?

I will be very grateful if anybody can help us.

Thanx,
Don

Comments

  • ara3nara3n Member Posts: 9,256
    this the wrong thread to post the question. I suggest to turn on the debugger and see where it stops and hangs.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,499
    [Topic moved from NAV Tips & Tricks to NAV/Navision forum]
  • AAshokAAshok Member Posts: 53
    Hi,

    R u creating any batch file with cuteftp command line? if yes plz check any spaces between the commands in the created batch file.

    Try dis once.

    Ashok
  • garakgarak Member Posts: 3,263
    that the Automation could not be created.

    To check, if the process can run on the PC where the NAS is, copy a Clientfolder to the NAS Pc and rund this process from the copied client.
    If the process not run, you found your problem (cuteftp dll isn't regist. on the NAS PC or may be the NAS use the wrong flf).

    If the process run, start the debugger on NAS.
    Run the debugger with the same user (!) that runs the NAS to see if some windows permissions creates the error (like permission den. to open a folder).

    To debug the NAS follow the link:

    viewtopic.php?f=23&t=23939

    Regards
    Do you make it right, it works too!
Sign In or Register to comment.