Studio Constantly throwing error and requesting restart of Studio frequently

Hi All,

I have installed UI Path(Studio 2019.10.4 - 2/6/2020). When opening existing projects and while executing any xaml file i keep getting the following error.

Could not load type ‘YesNoAuto’ from assembly 'UiPath.Vision.Core

Frequently UI Path studio says that it had an unexpected error and requires restart. Below is the studio logs which says some tmp folder file is being used, but that file does not exist in the machine at all.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
, HResult -2147024894
18:29:39.2204 => [ERROR] [UiPath.Studio.exe] [1] Error: System.TypeLoadException: Could not load type ‘YesNoAuto’ from assembly ‘UiPath.Vision.Core, Version=2.0.3.0, Culture=neutral, PublicKeyToken=null’.
*** at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)***
*** at System.Reflection.RuntimeAssembly.GetExportedTypes()***
*** at System.Activities.Presentation.View.ImportDesigner.GetUniqueNamespacesInAssembly(Assembly assembly, AssemblyContextControlItem assemblyContextItem)***
*** at System.Activities.Presentation.View.ImportDesigner.UpdateAvailableNamespaces(Assembly assembly, AssemblyContextControlItem assemblyContextItem)***
*** at System.Activities.Presentation.View.ImportDesigner.GetAvailableNamespaces()***
*** at System.Activities.Presentation.View.ImportDesigner.OnContextChanged()***
*** at System.Activities.Presentation.View.ImportDesigner.OnContextChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)***
*** at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)***
*** at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)***
*** at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)***
*** at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)***
*** at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)***
*** at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)***
*** at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)***
*** at System.Windows.Data.BindingExpression.Activate(Object item)***
*** at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)***
*** at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)***
*** at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)***
*** at MS.Internal.Data.DataBindEngine.Run(Object arg)***
*** at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)***
*** at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233054***
18:29:39.8006 => [ERROR] [UiPath.Studio.exe] [1] IExceptionService: System.Windows.Markup.XamlParseException: Failed to create a ‘Cursor’ from the text ‘/System.Activities.Presentation;component/Resources/ReadyToPan.cur’. —> System.IO.IOException: The process cannot access the file ‘C:\Users\Monika\AppData\Local\Temp\tmpFF77.tmp’ because it is being used by another process.
*** at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)***
*** at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)***
*** at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share)***
*** at System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream)***
*** at System.Windows.Input.Cursor…ctor(Stream cursorStream, Boolean scaleWithDpi)***
*** at System.Windows.Input.CursorConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)***
*** at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateObjectWithTypeConverter(ServiceProviderContext serviceContext, XamlValueConverter1 ts, Object value)*** *** at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateFromValue(ServiceProviderContext serviceContext, XamlValueConverter1 ts, Object value, XamlMember property)***
*** at MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.CreateFromValue(ServiceProviderContext serviceContext, XamlValueConverter1 ts, Object value, XamlMember property)*** *** at System.Xaml.XamlObjectWriter.Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter1 typeConverter, Object value, XamlMember property, String targetName, IAddLineInfo lineInfo)***
*** — End of inner exception stack trace —***
*** at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)***
*** at System.Windows.Markup.WpfXamlLoader.LoadDeferredContent(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings parentSettings, Uri baseUri)***
*** at System.Windows.ResourceDictionary.CreateObject(KeyRecord key)***
*** at System.Windows.ResourceDictionary.OnGettingValue(Object key, Object& value, Boolean& canCache)***
*** at System.Windows.ResourceDictionary.OnGettingValuePrivate(Object key, Object& value, Boolean& canCache)***
*** at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)***
*** at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)***
*** at System.Activities.Presentation.View.DesignerView.OnDesignerViewLoaded(Object sender, RoutedEventArgs e)***
*** at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)***
*** at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)***
*** at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)***
*** at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)***
*** at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)***
*** at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)***
*** at MS.Internal.LoadedOrUnloadedOperation.DoWork()***
*** at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()***
*** at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()***
*** at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)***
*** at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)***
*** at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)***
*** at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233087***

Regards

@loginerror Can you please help me out here ?

Hi @chaitra.m0103

Are you by chance opening an older project from version earlier than 2018.3?

It would look like some dependencies are broken.

Could you maybe post the content of the project.json file of your project?

1 Like

Here you go. Below is the project.json from a project I am working on and i get error while accessing the newly created project not just opening some old project. I have not opened any older than 2018 version projects on this machine as far as i remember.

{

  • “name”: “CertificationPractice”,*
  • “description”: “Robotic Enterprise Framework - Practical Exam Practice Modules\r\n”,*
  • “main”: “Main.xaml”,*
  • “dependencies”: {*
  • “UiPath.Credentials.Activities”: “[1.1.6479.13204]”,*
  • “UiPath.Excel.Activities”: “[2.7.2]”,*
  • “UiPath.System.Activities”: “[19.10.1]”,*
  • “UiPath.UIAutomation.Activities”: “[19.11.1]”*
  • },*
  • “webServices”: ,*
  • “schemaVersion”: “4.0”,*
  • “studioVersion”: “19.10.4.0”,*
  • “projectVersion”: “1.0.0”,*
  • “runtimeOptions”: {*
  • “autoDispose”: false,*
  • “isPausable”: true,*
  • “requiresUserInteraction”: true,*
  • “supportsPersistence”: false,*
  • “excludedLoggedData”: [*
  •  "Private:*",*
    
  •  "*password*"*
    
  • ],*
  • “executionType”: “Workflow”*
  • },*
  • “designOptions”: {*
  • “projectProfile”: “Developement”,*
  • “outputType”: “Process”,*
  • “libraryOptions”: {*
  •  "includeOriginalXaml": false,*
    
  •  "privateWorkflows": []*
    
  • },*
  • “fileInfos”: *
  • },*
  • “expressionLanguage”: “VisualBasic”*
    }

@loginerror lets say i had even opened some older studio project. How would that effect the current error being shown and how do we get that fixed?

Hi @chaitra.m0103

Could you try updating the UiAutomation activity package to the newer version to see if this fixes the issue?

Hi @loginerror,

i have updated the UI Automations already. I am still facing the issue. Do you think that something else could be the reason?

Regards,
chaitra

This could still mean that there is a sort of antivirus that is blocking this file from being placed in this location. Could it be the case in your situation?

Also, to clarify:

  • it was working before and started throwing errors after the new version was installed
  • the issues only happens for older projects
    Correct?

same issue is happening with me. yes its happening for older projects. i am able to open other projects properly.

Hi @sybasha

Welcome to our UiPath Forum :slight_smile:

Could you maybe post your full error message as well as the Studio version you are using?