Problem using Cute FTP automation

AntHillMobAntHillMob Member Posts: 79
I have seen numerous posts of people using CuteFTP with automation with NAV so I am hoping that someone can shine some light on a strange problem I am having.

I have a fairly simple codeunit that uploads a file using Cute FTP automation. If we run the codeunit directly it works correctly, however if the codeunit is run from NAS or using the Job Scheduler it fails and I get the following error in the event log:
Event Type: Information
Event Source: Application Popup
Event Category: None
Event ID: 26
Date: 28/03/2011
Time: 11:39:14
User: N/A
Computer: -------
Description:
Application popup: Microsoft Visual C++ Runtime Library : Runtime Error!
Program: C:...

It did work running under NAs fine for a while. NAs was running user the same system account as was used when running manually.

Any pointers much appreciated.

Comments

  • IsakssonMiIsakssonMi Member Posts: 77
    Event Source: Application Popup

    Looks like the GUI thread was called, that is not allowed from NAS.
  • IsakssonMiIsakssonMi Member Posts: 77
    To clarify, NAS is running as a windows service which doesn't have access to the GUI.
    If you run by NAS and using an object that uses an Automation or OCX that tries to access the GUI an error will occur.

    You need to check if there are properties in the class to disable all prompting using GUI.

    But I can't say this is the problem for you.
Sign In or Register to comment.