I have a process that runs fine on my UiPath studio dev PC, but fails to run on the robot PC, failing after a few seconds with the below error. Other processes are running without issue. The process is using the following packages (I’ve tried upgrading to latest and still didn’t work) :-
UiPath.Excel.Activities 2.22.4
UiPath.Mail.Activities 1.24.1
UiPath.System.Activities 24.3.1
Following research in to the isuse, I changes each package runtime rule to Lowest Applicable Version, but this had not impact. The Robot PC has .Net 8 installed.
Any help to resolve this greatly appreciated.
- Package version: 1.1.11
- State:Faulted
- Raw message:
Could not load file or assembly ‘System.Activities.ViewModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified. System.IO.FileNotFoundException: Could not load file or assembly ‘System.Activities.ViewModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified.System.IO.FileNotFoundException: Could not load file or assembly ‘System.Activities.ViewModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified. —> StackTrace of this exception failed: System.IO.FileNotFoundException: Could not load file or assembly ‘System.Activities.ViewModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified. File name: ‘System.Activities.ViewModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ at System.ModuleHandle.ResolveType(QCallModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle typeInstantiationContext, RuntimeTypeHandle methodInstantiationContext) at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type genericTypeArguments, Type genericMethodArguments) at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataToken caCtorToken, MetadataImport& scope, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1& derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctorWithParameters, Boolean& isVarArg) at System.Reflection.CustomAttribute.IsCustomAttributeDefined(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Int32 attributeCtorToken, Boolean mustBeInheritable) at System.Reflection.CustomAttribute.IsDefined(RuntimeType type, RuntimeType caType, Boolean inherit) at System.Diagnostics.StackTrace.ToString(TraceFormat traceFormat, StringBuilder sb) at System.Diagnostics.StackTrace.ToString(TraceFormat traceFormat) at System.Exception.get_StackTrace() at UiPath.Shared.ExceptionMethods.SafeStackTrace(Exception ex) in D:\a\1\s\Common\UiPath.Shared\ExceptionMethods.cs:line 229