Advice running custom .NET applications in a workflow

Discussion created by Phillip_Blanchard_1236 on Jun 6, 2016
Latest reply on Jun 9, 2016 by Phillip_Blanchard_1236

A colleague of mine has built a .NET application and provided me an executable.  If I open a command prompt on my Automic Engine server and run the executable (see command in BOLD below) it performs as expected.  Now when I create a JOBS Windows Job to run the same I get .NET errors that are confusing my .NET developer:

E:\AdobeCRM\release>CD \AdobeCRM\release 
E:\AdobeCRM\release>AdobeToHachetteUnSubscribe.exe lowerCaseEmail automic file=E:\AdobeCRM\FTP\GB\1000\HAC_GB_ADO_1000_UNSUBSCRIBE_130116.csv 

Unhandled Exception: System.TypeInitializationException: The type initializer for 'Hachette.Common.Extensions.Singletons.Screen' threw an exception. ---> System.IO.IOException: The handle is invalid.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
   at System.Console.get_WindowHeight()
   at Hachette.Common.Extensions.Singletons.ScreenSettings..ctor() in C:\My Documents\Hachette.Common\Extensions\Singletons\Screen.cs:line 101
   at Hachette.Common.Extensions.Singletons.Screen..ctor() in C:\My Documents\Hachette.Common\Extensions\Singletons\Screen.cs:line 196
   at Hachette.Common.Extensions.Singletons.Screen..cctor() in C:\My Documents\Hachette.Common\Extensions\Singletons\Screen.cs:line 119
   --- End of inner exception stack trace ---
   at Hachette.Common.Extensions.Singletons.Screen.WriteLineToScreen(String screenLine) in C:\My Documents\Hachette.Common\Extensions\Singletons\Screen.cs:line 234
   at Hachette.Common.Extensions.CommandLine.GetArgs(String p, Boolean letMeknowIfFound) in C:\My Documents\Hachette.Common\Extensions\CommandLine.cs:line 28
   at AdobeToHachetteUnSubscribe.Program.GetRunTimeArguements() in C:\My Documents\Hachette.CRM\AdobeToHachetteUnSubscribe\Program.cs:line 130
   at AdobeToHachetteUnSubscribe.Program.Main(String[] args) in C:\My Documents\Hachette.CRM\AdobeToHachetteUnSubscribe\Program.cs:line 89

Can anyone advise what I can look at to determine more information.  OR is there another (better) way to call a .NET application?

I should be able to answer any Automic setup questions, but for .NET I would need to ask my colleague.

Thanks in advance for your help.