I am trying to run a workflow through UiPath Robot command line execution but it is throwing a FileNotFoundException.
The problem is: in Studio, it works without any problem of dependencies.
I am suspecting it is related to folder permissions.
Command line: C:\Program Files (x86)\UiPath\Studio>UiRobot.exe -file “C:\Work\Client\Client - Automation Name\Main.xaml”
Exception: An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.IO.FileNotFoundException: Could not load file or assembly ‘UiPath.Models, Version=220.127.116.11, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.
at UiPath.Core.Activities.LogMessage.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)