An exception was thrown while activating UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper

Cannot open item: UiPath.Studio.Contracts.RecoverableException: The item ‘C:\Users\thilankas\Documents\UiPath\BlankProcess3\Main.xaml’ could not be opened: An exception was thrown while activating UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper…
—> RemoteException wrapping Autofac.Core.DependencyResolutionException: An exception was thrown while activating UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper. —> RemoteException wrapping Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(UiPath.Studio.Plugin.Workflow.WorkflowHandling.IDesignerBuilder, UiPath.Studio.Contracts.Desktop.MVVM.IDispatcherService, UiPath.Studio.Plugin.Workflow.ExpressionEditor.IExpressionEditorRepository, System.Func1[UiPath.Studio.Plugin.Workflow.FindReferences.IFindReferencesManager], UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDocumentationLinksService, UiPath.Studio.Contracts.Desktop.IResourceIconsService, UiPath.Studio.Analytics.Contracts.ITelemetryProvider, UiPath.Studio.Contracts.IOutputLoggerService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IInvokeWorkflowProjectService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IRefactoringsService, UiPath.Studio.Plugin.Workflow.Shared.Activities.IActivityFactory, UiPath.Studio.Plugin.Workflow.Services.Interfaces.ISimpleMessageBoxService, System.IO.Abstractions.IFileSystem, UiPath.Studio.Plugin.Workflow.WorkflowHandling.Theme.IDesignerThemeBehavior, UiPath.Studio.App.Desktop.MVVM.Commands.ICommandFactory, UiPath.Studio.Plugin.Workflow.WorkflowHandling.IDesignerConfiguration, System.Func2[System.Activities.Presentation.WorkflowDesigner,UiPath.Studio.Plugin.Workflow.WorkflowHandling.Variables.IAdvancedDocumentVariablesService], UiPath.Studio.Plugin.Workflow.Debugger.Execution.Services.IDesignerExecutionService, Factory, Factory, UiPath.Studio.Contracts.Profile.IProfile, UiPath.Studio.Activities.Api.IWorkflowDesignApi, UiPath.Studio.Plugin.Workflow.Shared.Services.Interfaces.ISettingsServiceWrapper, UiPath.Studio.Plugin.Workflow.Debugger.Navigation.Services.IDesignerExecutionTrailService, UiPath.Studio.Plugin.Workflow.Execution.Services.IExecutionTrailRepository, Factory, UiPath.Studio.Plugin.Workflow.WorkflowHandling.Interfaces.IInsertActivityService, UiPath.Studio.Plugin.Workflow.WorkflowHandling.Interfaces.IInsertWizardResultService, UiPath.Studio.Plugin.Workflow.CodeAnalysis.Interfaces.IExpressionCompiler, System.Func3[System.Windows.FrameworkElement,UiPath.Studio.Plugin.Workflow.WorkflowHandling.IDesignerOwner,UiPath.Studio.Plugin.Workflow.WorkflowHandling.PropertyGridWrapper], Factory, UiPath.Studio.Plugin.Workflow.Shared.WorkflowHandling.IDesignerActivitiesCommandsRepository, UiPath.Workflow.Operations.SyntaxLanguage.ISyntaxLanguageService, UiPath.Studio.Plugin.Workflow.AddInFramework.IAddInProjectService, UiPath.Studio.Plugin.Workflow.Shared.Excel.IExcelService, UiPath.Studio.Plugin.Workflow.Shared.ToolWindows.IToolWindowProjectService, System.Activities.Presentation.IIntegratedHelpService, UiPath.Studio.Plugin.Workflow.Shared.Interfaces.IProjectWrapper, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IActivityLoaderService, UiPath.Studio.Shared.Assemblies.IAssemblyContainer, UiPath.Studio.Plugin.Workflow.Shared.Triggers.ITriggerService, UiPath.Studio.Plugin.Workflow.Shared.Services.Interfaces.IArgumentFilterService, UiPath.Studio.Plugin.Workflow.WorkflowInfo.Services.IVariablePropertiesEditor, UiPath.Studio.Plugin.Workflow.WorkflowInfo.Services.IArgumentPropertiesEditor, UiPath.Workflow.Operations.Handling.ITextExpressionClassMethods, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IActivityMetadataInformationService, UiPath.Studio.JitAssemblyCompiler.GlobalVariables.IGlobalVariablesProjectService, UiPath.Studio.Plugin.Workflow.WorkflowHandling.IDropInsertActivityService, System.Activities.Presentation.Hosting.IMultiTargetingSupportService, UiPath.Studio.Plugin.Workflow.Presentation.IActivityViewModelService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerInfoService, UiPath.Studio.Plugin.Workflow.WorkflowHandling.Interfaces.IUnresolvedActivityInfoService, UiPath.Studio.Plugin.Workflow.WorkflowHandling.IModelChangeObserver, UiPath.Workflow.Operations.Serializer.Services.IInvalidXamlNodesFinder, UiPath.Studio.Plugin.Workflow.WorkflowHandling.BrowsableReferencedAssemblyNames, UiPath.Studio.Plugin.Workflow.WorkflowHandling.Interfaces.IDesignerDecoratorService, UiPath.Studio.Plugin.Workflow.Patches.Interfaces.IPatchService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IActivityIconFinder, UiPath.Studio.Plugin.Workflow.TemplateValues.Interfaces.ITemplateValuesPropertiesService)' on type 'DesignerWrapper'. ---> RemoteException wrapping System.DllNotFoundException: Unable to load DLL 'api-ms-win-eventing-provider-l1-1-0.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at System.Diagnostics.Eventing.UnsafeNativeMethods.EventRegister(Guid& providerId, EtwEnableCallback enableCallback, Void* callbackContext, Int64& registrationHandle) at System.Diagnostics.Eventing.EventProvider.EtwRegister() at System.Activities.Presentation.DesignerPerfEventProvider..ctor() at System.Activities.Presentation.WorkflowDesigner..ctor() at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.BuildBasic() at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.BuildInternal(DesignerEventsSubscriber eventsSubscriber, String workflowId, String fileName) at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.Build(DesignerEventsSubscriber eventsSubscriber, String workflowId, String fileName) at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper..ctor(IDesignerBuilder designerBuilder, IDispatcherService dispatchingService, IExpressionEditorRepository expressionEditorService, Func1 findReferencesManagerFactory, IDocumentationLinksService documentationLinksService, IResourceIconsService resourceIconsService, ITelemetryProvider telemetryProvider, IOutputLoggerService outputLoggerServices, IInvokeWorkflowProjectService invokeWorkflowSupport, IRefactoringsService refactoringsService, IActivityFactory activityFactory, ISimpleMessageBoxService simpleMessageBoxService, IFileSystem fileSystem, IDesignerThemeBehavior designerThemeBehavior, ICommandFactory commandFactory, IDesignerConfiguration designerConfiguration, Func2 designerVariablesServiceFactory, IDesignerExecutionService executionController, Factory workflowTransformRepositoryFactory, Factory expressionEditorServiceFactory, IProfile profile, IWorkflowDesignApi workflowDesignApi, ISettingsServiceWrapper settingsServiceWrapper, IDesignerExecutionTrailService designerExecutionTrailService, IExecutionTrailRepository executionTrailRepository, Factory contextMenuBuilderFactory, IInsertActivityService insertActivityService, IInsertWizardResultService insertWizardResultService, IExpressionCompiler expressionCompiler, Func3 propertyGridWrapperFactory, Factory workflowDesignerValidationServiceFactory, IDesignerActivitiesCommandsRepository designerActivitiesCommandsRepository, ISyntaxLanguageService syntaxLanguageService, IAddInProjectService addInService, IExcelService excelService, IToolWindowProjectService toolWindowProjectService, IIntegratedHelpService designerHelpService, IProjectWrapper projectWrapper, IActivityLoaderService activityLoaderService, IAssemblyContainer assemblyContainer, ITriggerService triggerService, IArgumentFilterService argFilterService, IVariablePropertiesEditor variablePropertiesEditor, IArgumentPropertiesEditor argumentPropertiesEditor, ITextExpressionClassMethods textExpression, IActivityMetadataInformationService activityMetadataInformationService, IGlobalVariablesProjectService globalVariablesService, IDropInsertActivityService dropInsertActivityService, IMultiTargetingSupportService multiTargetingSupportService, IActivityViewModelService activityViewModelService, IDesignerInfoService designerInfoService, IUnresolvedActivityInfoService unresolvedActivityInfoService, IModelChangeObserver childModelChangedObserver, IInvalidXamlNodesFinder invalidXamlNodesFinder, BrowsableReferencedAssemblyNames browsableAssemblyNameList, IDesignerDecoratorService designerDecoratorService, IPatchService patchService, IActivityIconFinder activityIconFinder, ITemplateValuesPropertiesService templateValuesPropertiesService)
at lambda_method436(Closure , Object )
at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate()
— End of inner exception stack trace —
at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) at Autofac.Core.Activators.Reflection.ReflectionActivator.<ConfigurePipeline>b__11_0(ResolveRequestContext ctxt, Action1 next)
at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action1 next) --- End of inner exception stack trace --- at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action1 next)
at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action1 next)
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request)
at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request)
at lambda_method519(Closure )
at UiPath.Studio.Plugin.Workflow.Services.DesignerRepository.<>c__DisplayClass10_0.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.DesignerRepository.AddDesignerWrapper()
at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.<>c__DisplayClass8_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.<>c__DisplayClass8_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Studio.Shared.MVVM.Services.DispatcherService.InvokeAsync(Func1 func) at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.Load(String fileName) 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, List1 cancellationTokens, Func2 func, String message, Func2 exceptionHandler)
— End of inner exception stack trace —
at UiPath.Studio.Core.Services.PersistableServiceBase3.OnOpenAsyncInternal(String path, IFactory2 resolvedFactory, IOpenOptions options)
at UiPath.Studio.Core.Services.PersistableServiceBase3.OnOpenAsync(String path, IFactory2 resolvedFactory, IOpenOptions options)
at UiPath.Studio.Shell.Services.DocumentService.OnOpenAsync(String path, IFactory2 resolvedFactory, IOpenOptions options) at UiPath.Studio.Core.Services.PersistableServiceBase3.OpenAsync(OpenInformation openInfo)
at UiPath.Studio.Shell.ViewModels.MainWindowViewModel.OpenEntryPoint()
at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand`3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
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 -2146233088

Hello @Thilanka_Sanjaya. Welcome to UiPath Community
Kindly Refer to this thread, It may help you.