I have tried the command on AS400 and runs successfully. Using full path does not work.
We just execute it as is. Have you tried using the same Credential as the user you are logged as.
Yes I do.
After tinkering with it I now get the following error message:
ExecuteProcess("C:\Program Files (x86)\VisualCron\\AS400Execute.exe" 310)->Unhandled execution error: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {86F9DB12-15D5-11D2-849C-0004AC94E175} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at AS400Execute.AS400Execute.Execute()
at JCILGh9fhWLxBVi1mh.ifauw5mGMc0P0xP2ol.NxDnsUCdK(String[] )
Exception in Task: ExecuteProcess("C:\Program Files (x86)\VisualCron\\AS400Execute.exe" 310)->Unhandled execution error: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {86F9DB12-15D5-11D2-849C-0004AC94E175} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at AS400Execute.AS400Execute.Execute()
at JCILGh9fhWLxBVi1mh.ifauw5mGMc0P0xP2ol.NxDnsUCdK(String[] )