Hi all,
I am running and debugging projects from a virtual machine, and during runs I am getting a “Connection Closed” error. This doesn’t seem to stop the process in run mode, it just prevents me from stopping the process from Studio. However when I am in debug mode, the process stops, and if I click Step Into/Step Over then it throws a “foreground process is already running” error, as Executor doesn’t stop running when the Connection Closed error appears.
I had seen a few posts about this error occurring for different reasons, but none of them seemed to be occurring mid-run. Is there a reason why this error is coming up, and is there anything to prevent this error from occurring?
Full error message:
One or more errors occurred. (Connection closed.) —> System.IO.IOException: Connection closed. at UiPath.CoreIpc.Connection.RemoteCall(Request request, Stream uploadStream, CancellationToken token)
at UiPath.CoreIpc.ServiceClient1.<>c__DisplayClass21_1
1.<b__1>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func
2 func, String message, Func2 exceptionHandler) at UiPath.CoreIpc.ServiceClient
1.<>c__DisplayClass21_11.<Invoke>b__2(Exception ex) at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List
1 cancellationTokens, Func2 func, String message, Func
2 exceptionHandler)
at UiPath.Executor.Debugger.Client.Services.RobotExecutorProxy.StartJobAsync(ExecutionStartOptionsSlim startOptions)
— End of inner exception stack trace —
at UiPath.CoreIpc.Connection.RemoteCall(Request request, Stream uploadStream, CancellationToken token)
at UiPath.CoreIpc.ServiceClient1.<>c__DisplayClass21_1
1.<b__1>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func
2 func, String message, Func2 exceptionHandler) at UiPath.CoreIpc.ServiceClient
1.<>c__DisplayClass21_11.<Invoke>b__2(Exception ex) at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List
1 cancellationTokens, Func2 func, String message, Func
2 exceptionHandler)
at UiPath.Executor.Debugger.Client.Services.RobotExecutorProxy.StartJobAsync(ExecutionStartOptionsSlim startOptions)