Hello,
I am getting an error when attempting to save a workflow in Studio. I am getting the following error after clicking Save:
Save: RemoteException wrapping System.Xaml.XamlObjectReaderException: Failed to convert 'System.Activities.InArgument`1[System.Collections.Generic.Dictionary`2[System.String,System.Object]]' to type 'System.String'. ---> RemoteException wrapping System.IO.FileNotFoundException: Could not load file or assembly 'UiPath.CodedWorkflows, Version=23.10.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.AddCustomAttributes(ListBuilder`1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1 derivedAttributes)
at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit)
at System.Xaml.MS.Impl.XmlNsInfo.LoadPrefixes()
at System.Xaml.XamlSchemaContext.UpdatePreferredPrefixes(XmlNsInfo newNamespaces, ConcurrentDictionary`2 prefixDict)
at System.Xaml.XamlSchemaContext.InitializePreferredPrefixes()
at System.Xaml.XamlSchemaContext.GetPreferredPrefix(String xmlns)
at System.Xaml.XamlObjectReader.SerializerContext.FindPrefix(String ns)
at System.Xaml.XamlObjectReader.TypeDescriptorAndValueSerializerContext.LookupPrefix(String ns)
at System.Xaml.Schema.XamlTypeName.ConvertToStringInternal(StringBuilder result, Func`2 prefixGenerator)
at System.Xaml.Schema.XamlTypeName.ConvertListToStringInternal(StringBuilder result, IList`1 typeNameList, Func`2 prefixGenerator)
at System.Xaml.Schema.XamlTypeName.ConvertToStringInternal(StringBuilder result, Func`2 prefixGenerator)
at System.Xaml.Schema.XamlTypeName.ConvertToStringInternal(Func`2 prefixGenerator)
at System.Xaml.Schema.XamlTypeName.ToString(INamespacePrefixLookup prefixLookup)
at System.Xaml.Schema.XamlTypeTypeConverter.ConvertXamlTypeToString(ITypeDescriptorContext context, XamlType xamlType)
at System.Xaml.Replacements.TypeTypeConverter.ConvertTypeToString(ITypeDescriptorContext context, Type type)
at System.Xaml.Replacements.TypeTypeConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.ConvertToValue[T](ITypeDescriptorContext context, TypeConverter converter, Object instance)
--- End of inner exception stack trace ---
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.ConvertToValue[T](ITypeDescriptorContext context, TypeConverter converter, Object instance)
at System.Xaml.XamlObjectReader.MemberMarkupInfo.GetPropertyValueInfoInternal(Object propertyValue, ValueSerializer propertyValueSerializer, TypeConverter propertyConverter, Boolean isXamlTemplate, XamlMember xamlProperty, SerializerContext context)
at System.Xaml.XamlObjectReader.MemberMarkupInfo.GetPropertyValueInfo(Object propertyValue, XamlMember xamlProperty, SerializerContext context)
at System.Xaml.XamlObjectReader.MemberMarkupInfo.ForReadWriteProperty(Object source, XamlMember xamlProperty, SerializerContext context)
at System.Xaml.XamlObjectReader.ObjectMarkupInfo.AddRecordMembers(Object value, SerializerContext context, ParameterInfo[] methodParameters, XamlType xamlType)
at System.Xaml.XamlObjectReader.ObjectMarkupInfo.AddRecordMembers(Object value, SerializerContext context, TypeConverter converter)
at System.Xaml.XamlObjectReader.ObjectMarkupInfo.ForObjectInternal(Object value, SerializerContext context, TypeConverter converter)
at System.Xaml.XamlObjectReader.ObjectMarkupInfo.ForObject(Object value, SerializerContext context, TypeConverter instanceConverter, Boolean isRoot)
at System.Xaml.XamlObjectReader.MemberMarkupInfo.ForSequenceItems(Object sourceOrValue, XamlMember property, XamlType xamlType, SerializerContext context, Boolean allowReadOnly)
at System.Xaml.XamlObjectReader.MemberMarkupInfo.ForSequence(Object source, XamlMember property, SerializerContext context, Boolean isAttachable)
at System.Xaml.XamlObjectReader.ObjectMarkupInfo.AddRecordMembers(Object value, SerializerContext context, ParameterInfo[] methodParameters, XamlType xamlType)
at System.Xaml.XamlObjectReader.ObjectMarkupInfo.AddRecordMembers(Object value, SerializerContext context, TypeConverter converter)
at System.Xaml.XamlObjectReader.ObjectMarkupInfo.ForObjectInternal(Object value, SerializerContext context, TypeConverter converter)
at System.Xaml.XamlObjectReader.ObjectMarkupInfo.ForObject(Object value, SerializerContext context, TypeConverter instanceConverter, Boolean isRoot)
at System.Xaml.XamlObjectReader..ctor(Object instance, XamlSchemaContext schemaContext, XamlObjectReaderSettings settings)
at System.Xaml.XamlServices.Save(XamlWriter writer, Object instance)
at UiPath.Workflow.Operations.Serializer.Services.WorkflowXamlSerializer.SaveAsString(ActivityBuilder activityBuilder)
at UiPath.Studio.Plugin.Workflow.Validation.DesignerStateValidator.GetSaveValidationError(Boolean flushEdits)
at UiPath.Studio.Plugin.Workflow.Validation.DesignerStateValidator.ValidateForSave(Boolean flushEdits)
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.<>c__DisplayClass156_0.<Save>b__0()
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.Execute_GlobalVariablesReferencesBehavior(Action action)
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.Save(String fileName)
at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.<>c__DisplayClass9_0.<Save>b__0()
at UiPath.Studio.Shared.MVVM.Services.DispatcherExtensions.<>c__DisplayClass0_0`1.<InvokeAsync>b__0()
--- End of stack trace from previous location ---
at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List`1 cancellationTokens, Func`2 func, String message, Func`2 exceptionHandler), HResult -2146233088
This is occurring on my laptop, and on a virtual machine. The VM is using the latest version of Studio, and my laptop is running 2022.10.5. The same also occurs when attempting to save other workflows.
Does anyone know what could be causing this?