# Studio giving error

**URL:** <https://forum.uipath.com/t/studio-giving-error/133568>\
**Category:** Help\
**Tags:** studio\
**Created:** [July 15, 2019, 8:29am UTC](https://forum.uipath.com/t/studio-giving-error/133568 "2019-07-15T08:29:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaishnavi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vaishnavi/32/53682_2.png) [@Vaishnavi](https://forum.uipath.com/u/Vaishnavi)\
**Post date:** [July 15, 2019, 8:29am UTC](https://forum.uipath.com/t/studio-giving-error/133568/1 "2019-07-15T08:29:03Z")

</div>

Hi,  
I am getting below error, pls help

19.6.0+Branch.master.Sha.adf20656f41da84cdec5e5620b62276717eb7319

The item ‘D:\UiPath\Proj\ArtticulateAutomation\Main.xaml’ could not be opened: 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’. —\> Document is invalid (See inner exception for details.) (See inner exception for details.).

Open: UiPath.Studio.Contracts.RecoverableException —\> UiPath.Studio.Contracts.RecoverableException: The item ‘D:\UiPath\Proj\ArtticulateAutomation\Main.xaml’ could not be opened: 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'. ---> Document is invalid (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.Func`1[UiPath.Studio.Plugin.Workflow.Debugger.Breakpoints.Services.IProjectBreakpointsService], UiPath.Studio.Contracts.IExtendedFileSystem, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService)’ on type ‘WorkflowDocument’. —\> Document is invalid (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.Func`1[UiPath.Studio.Plugin.Workflow.Debugger.Breakpoints.Services.IProjectBreakpointsService], UiPath.Studio.Contracts.IExtendedFileSystem, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService)' on type 'WorkflowDocument'. ---> Document is invalid (See inner exception for details.) ---> System.IO.InvalidDataException: Document is invalid at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.InitRootActivity(WorkflowDesigner designer, String filename) at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.Build(DesignerEventsSubscriber eventsSubscriber, String workflowId, String fileName) at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.Load(String fileName) at UiPath.Studio.Plugin.Workflow.Services.DesignerFileService.<>c __DisplayClass13_0.<Load>b__ 0() at UiPath.Studio.Shared.MVVM.Services.DispatcherExtensions.Invoke(Dispatcher dispatcher, Action action, Boolean onlyBeginInvokeWhenNoAccess) at UiPath.Studio.Shared.MVVM.Services.DispatcherService.Invoke(Action action, Boolean onlyInvokeWhenNoAccess) at UiPath.Studio.Plugin.Workflow.Services.DesignerFileService.Load(String fileName) at UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService.Load(String fileName) at UiPath.Studio.Plugin.Workflow.Services.DesignerFileServiceProxy.Load(String fileName) at UiPath.Studio.Plugin.Workflow.WorkflowDocument..ctor(String path, IDesignerFileService designerFileService, Func`1 projectBreakpointsServiceFactory, IExtendedFileSystem fileSystem, IDesignerViewService designerViewService)  
at lambda\_method(Closure , Object )  
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()  
— End of inner exception stack trace —  
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()  
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)  
— End of inner exception stack trace —  
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)  
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)  
at lambda\_method(Closure , String )  
at UiPath.Studio.Plugin.Workflow.WorkflowDocumentFactory.OpenAsync(String path)  
at UiPath.Studio.Core.Services.PersistableServiceBase`3.<OnOpenAsync>d__19.MoveNext() --- End of inner exception stack trace --- at UiPath.Studio.Core.Services.PersistableServiceBase`3.d\_\_19.MoveNext()  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at UiPath.Studio.Shell.Services.DocumentService.d\_\_45.MoveNext()  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at UiPath.Studio.Core.Services.PersistableServiceBase`3.d\_\_10.MoveNext()  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d\_\_20.MoveNext()  
— End of inner exception stack trace —  
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d\_\_20.MoveNext()  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)  
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d\_\_18.MoveNext(), HResult -2146233088

---

<div class="post-metadata">

**Author:** ![Pablito](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pablito/32/385495_2.png) [@Pablito](https://forum.uipath.com/u/Pablito)\
**Post date:** [July 15, 2019, 8:42am UTC](https://forum.uipath.com/t/studio-giving-error/133568/2 "2019-07-15T08:42:33Z")

</div>

Hi @Vaishnavi,  
Please try this solution:

> [@How to fix your Studio installation / Licensing issues](https://forum.uipath.com/t/how-to-fix-your-studio-installation-licensing-issues/133118):
>
> [How to fix your Studio installation / Licensing issues](https://forum.uipath.com/t/how-to-fix-your-studio-installation-licensing-issues/133118)If you encounter an issue with your Studio installation and or licensing issues, please follow the below procedure to re-install the most recent stable version of Studio. Before you start, you might want to backup your settings. Please follow this guide on how to do it: [Studio Community Edition - how to properly backup your settings](https://forum.uipath.com/t/studio-community-edition-how-to-properly-backup-your-settings/122443) Install all latest Windows Updates. Uninstall Studio from Apps & Features menu: Navigat…
