Alright, if I try to launch a bot from command line and I use a task in task scheduler to do it, that task for some reason activates the UiPath.Service.UserHost process which in turn throws the following error seen in the windows event logs…
UiRobot 19.6.0.0
System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: To execute processes, please activate a license. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Exception: To execute processes, please activate a license.
at UiPath.Service.Licenses.LicenseManager.d__6.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Service.Impl.ExecutionManager.d__28.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at UiPath.Service.Impl.ExecutionManager.d__11.MoveNext()
— End of stack trace from previous l…)., HResult -2146233087
If that noted process is running I get license reactivation errors no matter how I run a bot but if it is not running then I can run a bot through command line or studio.
I believe that is accurate and there is no UiRobot service installed on the machine as far as windows services go.
No. After I did the domain join I tried to run a process and it failed spectacularly so I uninstalled the product via control panel’s add/remove programs and then cleared out these file paths %userprofile%\AppData\Local\UiPath
%userprofile%.nuget\packages
I then reinstalled the product, launched a process from studio
And the process ran fine.
I have been experimenting with running it from Studio, from the Tray and even calling UiRobot.exe from the command line directly and those three methods all work if and only if UiPath.Service.UserHost is not running.
uninstall and remove UiPath folder from %localappdata%
install UiPathStudioSetup.exe
open Studio and Activate Free
open UiRobot.exe (from %localappdata%\UiPath)
open a process in Studio and run it
publish it (locally) and run it from Robot Tray
All these should work locally on the machine if after installing you activate Studio first (so the Robot would also get the free license). Now, based on your answers and our tests, when you run the process and you get that error (UiPath.Service.UserHost is not running) are you connected to Orchestrator?
This machine has not been connected to orchestrator to my knowledge. If it has been, it was done entirely without me. Is there a way I can readily check that?
And correction when I get the error UiPath.Service.UserHost IS running.
Question, what does this “UiPath.Service.UserHost” do ?