We are facing issue in Orchestrator. 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

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. 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.RuntimeType.IsDefined(Type attributeType, Boolean inherit)
at System.Diagnostics.StackTrace.ToString(TraceFormat traceFormat, StringBuilder sb)
at System.Diagnostics.StackTrace.ToString(TraceFormat traceFormat)
at System.Exception.get_StackTrace()
at System.IO.FileNotFoundException.ToString()
at System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted[T](T value)
at UiPath.Shared.ExceptionMethods.Trace(Exception exception, String label)
at UiPath.Executor.RobotRunner.NotifyJobCompleted(Exception ex)
at UiPath.Executor.RobotRunner.RunWorkflow()
at UiPath.Executor.WindowsRobotRunner.RunWorkflow()
at UiPath.Executor.RobotRunner.ExecuteJob(Boolean preLoaded)

Hello @Elancheran_E18

Please take a look at my suggested solution here:

Regards
Soren