Error when creating new process in UiPath Studio

Hello,

When creating a new process from UIPath Studio, i got this error:

19.5.0+Branch.master.Sha.a03bc4726ca82b7bb3addb0d04106dc150b31fba

Impossible d’ouvrir l’élément ‘C:\Users\Majda_BENAHOUI\Documents\UiPath\HelloWOrd3\Main.xaml’ : An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WorkflowDocument (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.WorkflowDocument, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IWorkflowDocument], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned —> An exception was thrown while invoking the constructor ‘Void .ctor(System.String, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, System.Func`1[UiPath.Studio.Plugin.Workflow.Debugger.Breakpoints.Services.IProjectBreakpointsService], UiPath.Studio.Contracts.IExtendedFileSystem, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService)’ on type ‘WorkflowDocument’. —> La valeur fournie sur ‘System.Windows.Markup.StaticExtension’ a levé une exception. (See inner exception for details.) (See inner exception for details.).

Ouvrir: UiPath.Studio.Contracts.RecoverableException —> UiPath.Studio.Contracts.RecoverableException: Impossible d’ouvrir l’élément ‘C:\Users\Majda_BENAHOUI\Documents\UiPath\HelloWOrd3\Main.xaml’ : An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WorkflowDocument (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.WorkflowDocument, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IWorkflowDocument], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned —> An exception was thrown while invoking the constructor ‘Void .ctor(System.String, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, System.Func1[UiPath.Studio.Plugin.Workflow.Debugger.Breakpoints.Services.IProjectBreakpointsService], UiPath.Studio.Contracts.IExtendedFileSystem, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService)' on type 'WorkflowDocument'. ---> La valeur fournie sur 'System.Windows.Markup.StaticExtension' a levé une exception. (See inner exception for details.) (See inner exception for details.). ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WorkflowDocument (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.WorkflowDocument, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IWorkflowDocument], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned ---> An exception was thrown while invoking the constructor 'Void .ctor(System.String, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, System.Func1[UiPath.Studio.Plugin.Workflow.Debugger.Breakpoints.Services.IProjectBreakpointsService], UiPath.Studio.Contracts.IExtendedFileSystem, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService)’ on type ‘WorkflowDocument’. —> La valeur fournie sur ‘System.Windows.Markup.StaticExtension’ a levé une exception. (See inner exception for details.) (See inner exception for details.) —> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(System.String, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, System.Func1[UiPath.Studio.Plugin.Workflow.Debugger.Breakpoints.Services.IProjectBreakpointsService], UiPath.Studio.Contracts.IExtendedFileSystem, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService)' on type 'WorkflowDocument'. ---> La valeur fournie sur 'System.Windows.Markup.StaticExtension' a levé une exception. (See inner exception for details.) ---> System.Windows.Markup.XamlParseException: La valeur fournie sur 'System.Windows.Markup.StaticExtension' a levé une exception. ---> System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> System.Windows.Markup.XamlParseException: La propriété Set 'System.Windows.ResourceDictionary.DeferrableContent' a levé une exception. ---> System.Xaml.XamlObjectWriterException: La valeur fournie sur 'MS.Internal.Markup.StaticExtension' a levé une exception. ---> System.Xaml.XamlParseException: La référence de type ne peut pas trouver un type nommé '{clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35}WorkflowDesignerColorsInternal'. à MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_Resolve(String qName) à MS.Internal.Xaml.ServiceProviderContext.System.Windows.Markup.IXamlTypeResolver.Resolve(String qName) à MS.Internal.Markup.StaticExtension.ProvideValue(IServiceProvider serviceProvider) à MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider) --- Fin de la trace de la pile d'exception interne --- à MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider) à System.Xaml.XamlObjectWriter.Logic_ProvideValue(ObjectWriterContext ctx) à System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx) à System.Xaml.XamlObjectWriter.WriteEndObject() à System.Xaml.XamlWriter.WriteNode(XamlReader reader) à System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter) à System.Windows.ResourceDictionary.EvaluateMarkupExtensionNodeList(XamlReader reader, IServiceProvider serviceProvider) à System.Windows.ResourceDictionary.GetKeyValue(KeyRecord key, IServiceProvider serviceProvider) à System.Windows.ResourceDictionary.SetKeys(IList1 keyCollection, IServiceProvider serviceProvider)
à System.Windows.ResourceDictionary.SetDeferrableContent(DeferrableContent deferrableContent)
à System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_DeferrableContent>b__297_0(Object target, Object value)
à System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
à MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
à MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
— Fin de la trace de la pile d’exception interne —
à System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
à System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
à System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
à System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
à System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
à System.Windows.Application.LoadComponent(Uri resourceLocator)
à System.Activities.Presentation.WorkflowDesignerColors.get_DefaultColors()
à System.Activities.Presentation.WorkflowDesignerColors.GetBrush(String colorKey)
à System.Activities.Presentation.WorkflowDesignerColors.GetColor(String colorKey)
à System.Activities.Presentation.WorkflowDesignerColors.get_DesignerViewBackgroundColor()
— Fin de la trace de la pile d’exception interne —
à System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor)
à System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments)
à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
à System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object index, CultureInfo culture)
à System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object index)
à System.Windows.Markup.StaticExtension.GetFieldOrPropertyValue(Type type, String name, Object& value)
à System.Windows.Markup.StaticExtension.ProvideValue(IServiceProvider serviceProvider)
à MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
— Fin de la trace de la pile d’exception interne —
à System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
à System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
à System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
à System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
à System.Activities.Presentation.View.ErrorView.InitializeComponent()
à System.Activities.Presentation.WorkflowDesigner.<.ctor>b__31_2(ErrorItem errorItem)
à System.Activities.Presentation.ContextItemManager.SubscribeProxy1.SubscribeContext(ContextItem item) à System.Activities.Presentation.EditingContext.DefaultContextItemManager.OnItemChanged(ContextItem item) à System.Activities.Presentation.EditingContext.DefaultContextItemManager.SetValue(ContextItem value) à System.Activities.Presentation.WorkflowDesigner.Load(String fileName) à UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.LoadFileInDesigner(String fileName, WorkflowDesigner designer) à UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.Build(DesignerEventsSubscriber eventsSubscriber, String workflowId, String fileName) à UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.Load(String fileName) à UiPath.Studio.Plugin.Workflow.Services.DesignerFileService.<>c__DisplayClass13_0.<Load>b__0() à UiPath.Studio.Shared.MVVM.Services.DispatcherExtensions.Invoke(Dispatcher dispatcher, Action action, Boolean onlyBeginInvokeWhenNoAccess) à UiPath.Studio.Shared.MVVM.Services.DispatcherService.Invoke(Action action, Boolean onlyInvokeWhenNoAccess) à UiPath.Studio.Plugin.Workflow.Services.DesignerFileService.Load(String fileName) à UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService.Load(String fileName) à UiPath.Studio.Plugin.Workflow.Services.DesignerFileServiceProxy.Load(String fileName) à UiPath.Studio.Plugin.Workflow.WorkflowDocument..ctor(String path, IDesignerFileService designerFileService, Func1 projectBreakpointsServiceFactory, IExtendedFileSystem fileSystem, IDesignerViewService designerViewService)
à lambda_method(Closure , Object )
à Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
— Fin de la trace de la pile d’exception interne —
à Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
à Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) à Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)
— Fin de la trace de la pile d’exception interne —
à Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters) à Autofac.Core.Resolving.InstanceLookup.Execute() à Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters)
à Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable1 parameters) à Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable1 parameters)
à lambda_method(Closure , String )
à UiPath.Studio.Plugin.Workflow.WorkflowDocumentFactory.OpenAsync(String path)
à UiPath.Studio.Core.Services.PersistableServiceBase3.<OnOpenAsync>d__19.MoveNext() --- Fin de la trace de la pile d'exception interne --- à UiPath.Studio.Core.Services.PersistableServiceBase3.d__19.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.Studio.Shell.Services.DocumentService.d__45.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.Studio.Core.Services.PersistableServiceBase`3.d__10.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.Studio.Shell.Services.OpenCloseCommandsService.d__20.MoveNext()
— Fin de la trace de la pile d’exception interne —
à UiPath.Studio.Shell.Services.OpenCloseCommandsService.d__20.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
à UiPath.Studio.Shell.Services.OpenCloseCommandsService.d__18.MoveNext(), HResult -2146233088

Can you help me to fix that please.

Best regarrds,
Majda BENOUAHI

Hello @majda_benouahi,
Welcome to the Community!
Please check this topic (seems that problem is similar):

Hello,

No, unfortunately the problem is not the same. I even follow the steps suggested in the other topic, but i have also the same problem

image

Please find bellow the log content:

17:23:11.9081 => [WARN] [UiPath.Studio.Shared.Logging.OutputLogger] [5] NU3034: Package ‘Microsoft.Rest.ClientRuntime 2.3.10’ from source ‘C:\Users\Majda_BENAHOUI\AppData\Local\UiPath\app-19.5.0\Packages’: This package is signed but not by a trusted signer.
17:23:11.9081 => [WARN] [UiPath.Studio.Shared.Logging.OutputLogger] [5] NU3034: Package ‘Humanizer.Core 2.4.2’ from source ‘C:\Users\Majda_BENAHOUI\AppData\Local\UiPath\app-19.5.0\Packages’: This package is signed but not by a trusted signer.
17:23:11.9081 => [WARN] [UiPath.Studio.Shared.Logging.OutputLogger] [5] NU3034: Package ‘Extended.Wpf.Toolkit 2.8’ from source ‘https://api.nuget.org/v3/index.json’: This package is signed but not by a trusted signer.
17:23:11.9081 => [WARN] [UiPath.Studio.Shared.Logging.OutputLogger] [5] NU3034: Package ‘Microsoft.AspNet.SignalR.Client 2.4.0’ from source ‘C:\Users\Majda_BENAHOUI\AppData\Local\UiPath\app-19.5.0\Packages’: This package is signed but not by a trusted signer.

17:23:15.6941 => [ERROR] [UiPath.Studio.exe] [16] $LoadAssembly: Microsoft.Exchange.WebServices.Auth, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35: System.IO.FileNotFoundException: Impossible de charger le fichier ou l’assembly ‘Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ ou une de ses dépendances. Le fichier spécifié est introuvable.
Nom de fichier : ‘Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’
à System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
à System.Reflection.RuntimePropertyInfo.get_Signature()
à System.Reflection.RuntimePropertyInfo.get_PropertyType()
à ActiproSoftware.Text.Languages.DotNet.Reflection.Implementation.BinaryAssemblyLoader.#aFc(#Lrc #wAf, MemberInfo #xAf)
à ActiproSoftware.Text.Languages.DotNet.Reflection.Implementation.BinaryAssemblyLoader.#cFc(#hsc #4Ub, Type #uAf)
à ActiproSoftware.Text.Languages.DotNet.Reflection.Implementation.BinaryAssemblyLoader.#XEc(Assembly #sxc)
à ActiproSoftware.Text.Languages.DotNet.Reflection.Implementation.BinaryAssemblyLoader.#iFc(Assembly #sxc)
à ActiproSoftware.Text.Languages.DotNet.Reflection.Implementation.AssemblyRepositoryBase.#30j(Assembly #sxc, IAssemblyName #4tc, IBinaryAssemblyMetadata #RDb)
à ActiproSoftware.Text.Languages.DotNet.Reflection.Implementation.AssemblyRepositoryBase.Create(Assembly assembly, IAssemblyName assemblyName, IBinaryAssemblyMetadata metadata)
à ActiproSoftware.Text.Languages.DotNet.Reflection.Implementation.FileBasedAssemblyRepository.Create(Assembly assembly, IAssemblyName assemblyName, IBinaryAssemblyMetadata metadata)
à ActiproSoftware.Text.Languages.DotNet.Reflection.Implementation.FileBasedAssemblyRepository.GetOrCreate(Assembly assembly, IAssemblyName assemblyName, String location)
à ActiproSoftware.Text.Languages.DotNet.Reflection.Implementation.AssemblyRepositoryBase.#uBh(Assembly #sxc, IAssemblyName #4tc, String #bVe)
à ActiproSoftware.Text.Languages.DotNet.Reflection.Implementation.AssemblyRepositoryBase.Load(Assembly assembly, IAssemblyName assemblyName)
à ActiproSoftware.Text.Languages.DotNet.Reflection.Implementation.AssemblyRepositoryBase.Load(String fullName)
à UiPath.Studio.Plugin.Workflow.ExpressionEditor.SyntaxService.LoadAssembly(LoadIntellisenseAssembliesContext context, String assemblyName, CancellationToken cancellationToken)

AVT : la journalisation de liaison d’assembly est désactivée.
Pour activer la journalisation des échecs de liaison d’assembly, attribuez la valeur 1 à la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD).
Remarque : une certaine perte de performance est associée à l’enregistrement dans le journal des échecs de liaison d’assembly.
Pour désactiver cette fonctionnalité, supprimez la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog].
, HResult -2147024894
17:23:16.0400 => [INFO] [UiPath.Studio.exe] [1] Entry Point: C:\Users\Majda_BENAHOUI\Documents\UiPath\Processusvierge\Main.xaml
17:23:16.2622 => [INFO] [UiPath.Studio.exe] [1] Redirected System.Activities to System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
17:23:16.2622 => [INFO] [UiPath.Studio.exe] [1] Redirected Microsoft.VisualBasic to Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
17:23:16.2622 => [INFO] [UiPath.Studio.exe] [1] Redirected System.Data to System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
17:23:16.2622 => [INFO] [UiPath.Studio.exe] [1] Redirected System to System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
17:23:16.2622 => [INFO] [UiPath.Studio.exe] [1] Redirected System.Drawing to System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
17:23:16.2743 => [INFO] [UiPath.Studio.exe] [1] Redirected System.Core to System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
17:23:16.2743 => [INFO] [UiPath.Studio.exe] [1] Redirected System.Xml to System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
17:23:16.2913 => [INFO] [UiPath.Studio.exe] [1] Redirected System.Xml.Linq to System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
17:23:16.2913 => [INFO] [UiPath.Studio.exe] [1] Redirected PresentationFramework to PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
17:23:16.2913 => [INFO] [UiPath.Studio.exe] [1] Redirected WindowsBase to WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
17:23:16.2913 => [INFO] [UiPath.Studio.exe] [1] Redirected PresentationCore to PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
17:23:16.2913 => [INFO] [UiPath.Studio.exe] [1] Redirected System.Xaml to System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
17:23:16.2913 => [INFO] [UiPath.Studio.exe] [1] Redirected UiPath.System.Activities to UiPath.System.Activities, Version=19.5.0.0, Culture=neutral, PublicKeyToken=null.
17:23:16.2913 => [INFO] [UiPath.Studio.exe] [1] Redirected UiPath.UiAutomation.Activities to UiPath.UiAutomation.Activities, Version=19.5.0.0, Culture=neutral, PublicKeyToken=null.
17:23:16.3867 => [INFO] [UiPath.Studio.exe] [1] System.NotSupportedException: Not supported xaml format, fall back to designer.Load()
à UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.LoadFileInDesigner(String fileName, WorkflowDesigner designer)
17:23:16.5051 => [ERROR] [UiPath.Studio.exe] [1] Ouvrir: UiPath.Studio.Contracts.RecoverableException —> UiPath.Studio.Contracts.RecoverableException: Impossible d’ouvrir l’élément ‘C:\Users\Majda_BENAHOUI\Documents\UiPath\Processusvierge\Main.xaml’ : An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WorkflowDocument (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.WorkflowDocument, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IWorkflowDocument], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned —> An exception was thrown while invoking the constructor ‘Void .ctor(System.String, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, System.Func1[UiPath.Studio.Plugin.Workflow.Debugger.Breakpoints.Services.IProjectBreakpointsService], UiPath.Studio.Contracts.IExtendedFileSystem, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService)' on type 'WorkflowDocument'. ---> La valeur fournie sur 'System.Windows.Markup.StaticExtension' a levé une exception. (See inner exception for details.) (See inner exception for details.). ---> Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WorkflowDocument (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.WorkflowDocument, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IWorkflowDocument], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned ---> An exception was thrown while invoking the constructor 'Void .ctor(System.String, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, System.Func1[UiPath.Studio.Plugin.Workflow.Debugger.Breakpoints.Services.IProjectBreakpointsService], UiPath.Studio.Contracts.IExtendedFileSystem, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService)’ on type ‘WorkflowDocument’. —> La valeur fournie sur ‘System.Windows.Markup.StaticExtension’ a levé une exception. (See inner exception for details.) (See inner exception for details.) —> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(System.String, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, System.Func1[UiPath.Studio.Plugin.Workflow.Debugger.Breakpoints.Services.IProjectBreakpointsService], UiPath.Studio.Contracts.IExtendedFileSystem, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService)' on type 'WorkflowDocument'. ---> La valeur fournie sur 'System.Windows.Markup.StaticExtension' a levé une exception. (See inner exception for details.) ---> System.Windows.Markup.XamlParseException: La valeur fournie sur 'System.Windows.Markup.StaticExtension' a levé une exception. ---> System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> System.Windows.Markup.XamlParseException: La propriété Set 'System.Windows.ResourceDictionary.DeferrableContent' a levé une exception. ---> System.Xaml.XamlObjectWriterException: La valeur fournie sur 'MS.Internal.Markup.StaticExtension' a levé une exception. ---> System.Xaml.XamlParseException: La référence de type ne peut pas trouver un type nommé '{clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35}WorkflowDesignerColorsInternal'. à MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_Resolve(String qName) à MS.Internal.Xaml.ServiceProviderContext.System.Windows.Markup.IXamlTypeResolver.Resolve(String qName) à MS.Internal.Markup.StaticExtension.ProvideValue(IServiceProvider serviceProvider) à MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider) --- Fin de la trace de la pile d'exception interne --- à MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider) à System.Xaml.XamlObjectWriter.Logic_ProvideValue(ObjectWriterContext ctx) à System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx) à System.Xaml.XamlObjectWriter.WriteEndObject() à System.Xaml.XamlWriter.WriteNode(XamlReader reader) à System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter) à System.Windows.ResourceDictionary.EvaluateMarkupExtensionNodeList(XamlReader reader, IServiceProvider serviceProvider) à System.Windows.ResourceDictionary.GetKeyValue(KeyRecord key, IServiceProvider serviceProvider) à System.Windows.ResourceDictionary.SetKeys(IList1 keyCollection, IServiceProvider serviceProvider)
à System.Windows.ResourceDictionary.SetDeferrableContent(DeferrableContent deferrableContent)
à System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_DeferrableContent>b__297_0(Object target, Object value)
à System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
à MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
à MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
— Fin de la trace de la pile d’exception interne —
à System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
à System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
à System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
à System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
à System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
à System.Windows.Application.LoadComponent(Uri resourceLocator)
à System.Activities.Presentation.WorkflowDesignerColors.get_DefaultColors()
à System.Activities.Presentation.WorkflowDesignerColors.GetBrush(String colorKey)
à System.Activities.Presentation.WorkflowDesignerColors.GetColor(String colorKey)
à System.Activities.Presentation.WorkflowDesignerColors.get_DesignerViewBackgroundColor()
— Fin de la trace de la pile d’exception interne —
à System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor)
à System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments)
à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
à System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object index, CultureInfo culture)
à System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object index)
à System.Windows.Markup.StaticExtension.GetFieldOrPropertyValue(Type type, String name, Object& value)
à System.Windows.Markup.StaticExtension.ProvideValue(IServiceProvider serviceProvider)
à MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
— Fin de la trace de la pile d’exception interne —
à System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
à System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
à System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
à System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
à System.Activities.Presentation.View.ErrorView.InitializeComponent()
à System.Activities.Presentation.WorkflowDesigner.<.ctor>b__31_2(ErrorItem errorItem)
à System.Activities.Presentation.ContextItemManager.SubscribeProxy1.SubscribeContext(ContextItem item) à System.Activities.Presentation.EditingContext.DefaultContextItemManager.OnItemChanged(ContextItem item) à System.Activities.Presentation.EditingContext.DefaultContextItemManager.SetValue(ContextItem value) à System.Activities.Presentation.WorkflowDesigner.Load(String fileName) à UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.LoadFileInDesigner(String fileName, WorkflowDesigner designer) à UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.Build(DesignerEventsSubscriber eventsSubscriber, String workflowId, String fileName) à UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.Load(String fileName) à UiPath.Studio.Plugin.Workflow.Services.DesignerFileService.<>c__DisplayClass13_0.<Load>b__0() à UiPath.Studio.Shared.MVVM.Services.DispatcherExtensions.Invoke(Dispatcher dispatcher, Action action, Boolean onlyBeginInvokeWhenNoAccess) à UiPath.Studio.Shared.MVVM.Services.DispatcherService.Invoke(Action action, Boolean onlyInvokeWhenNoAccess) à UiPath.Studio.Plugin.Workflow.Services.DesignerFileService.Load(String fileName) à UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService.Load(String fileName) à UiPath.Studio.Plugin.Workflow.Services.DesignerFileServiceProxy.Load(String fileName) à UiPath.Studio.Plugin.Workflow.WorkflowDocument..ctor(String path, IDesignerFileService designerFileService, Func1 projectBreakpointsServiceFactory, IExtendedFileSystem fileSystem, IDesignerViewService designerViewService)
à lambda_method(Closure , Object )
à Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
— Fin de la trace de la pile d’exception interne —
à Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
à Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) à Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters)
— Fin de la trace de la pile d’exception interne —
à Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters) à Autofac.Core.Resolving.InstanceLookup.Execute() à Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters)
à Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable1 parameters) à Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable1 parameters)
à lambda_method(Closure , String )
à UiPath.Studio.Plugin.Workflow.WorkflowDocumentFactory.OpenAsync(String path)
à UiPath.Studio.Core.Services.PersistableServiceBase3.<OnOpenAsync>d__19.MoveNext() --- Fin de la trace de la pile d'exception interne --- à UiPath.Studio.Core.Services.PersistableServiceBase3.d__19.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.Studio.Shell.Services.DocumentService.d__45.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.Studio.Core.Services.PersistableServiceBase`3.d__10.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.Studio.Shell.Services.OpenCloseCommandsService.d__20.MoveNext()
— Fin de la trace de la pile d’exception interne —
à UiPath.Studio.Shell.Services.OpenCloseCommandsService.d__20.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
à UiPath.Studio.Shell.Services.OpenCloseCommandsService.d__18.MoveNext(), HResult -2146233088

Hi @majda_benouahi

Welcome to our UiPath Forum! :slight_smile:

Please see this post (and the links it contains) and go over the solutions they provide:

It is basically to reinstall Studio from the latest installer.

2 Likes

Hello,

Thank you for your response.

I did the steps as mentionned at least 5 times. But it didn’t change anything, i have also the same error.

Thanks for helping.

Is there a possibility that certain protection software is blocking access to either internet or Studio installation files under:

%userprofile%\AppData\Local\UiPath\app-19.5.0\UiPath

I had a similar issue, I did a clean install and had to update the nuget file located in AppData\Roaming.…

Sorry I can’t remember the full path and it no longer appears on my computer :confused:

Thanks, i installed Microsoft Visual Studio and then it works. I think some librairies was missied on my machine and was fixed when installing MicrosoftVisual Studio.

1 Like