Getting error when executing console app "System.IO.IOException: The handle... - VisualCron - Forum

Community forum

untitled
2019-07-26T12:04:40Z
Hi all, thought we would share this with the community.
We are running version 7.6.6 of Visualcron and we have a console app written in C# .net, the app logs out stats to the console as it runs and it would start but exception out with the following error and we had no problem running it standalone:
Quote:

Unhandled Exception: System.IO.IOException: The handle is invalid.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)



Solution:
It turns out that it was related to the "Console.Clear();" command that we use that caused the problem. 😕 we removed it and it seems to work now.

Hope this helps someone out there, happy Visualcroning 😁
Support
2019-07-31T08:24:32Z
Thanks, this is because the host for executing c# does not have any console (as it runs in the background).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top