Bug whenever i open the workflow

Whenever i open my workflow it is giving the following error
image

21.2.0-beta.44+Branch.release-v21.2.0.Sha.8ede47e8688d4fa0ba0ff6103ca2fe3ca36a426f

An exception was thrown while activating UiPath.Studio.Plugin.Workflow.Toolbox.ToolboxControlViewModel.

Error: RemoteException wrapping Autofac.Core.DependencyResolutionException: An exception was thrown while activating UiPath.Studio.Plugin.Workflow.Toolbox.ToolboxControlViewModel. —> RemoteException wrapping Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(UiPath.Studio.Plugin.Workflow.Services.Interfaces.IActivityLoaderService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IToolboxWindowService, UiPath.Studio.Plugin.Workflow.Services.IFavoriteActivitiesService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IRecentActivitiesService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.ISimpleMessageBoxService, UiPath.Studio.App.Desktop.MVVM.Commands.ICommandFactory, UiPath.Studio.Contracts.Desktop.MVVM.IDispatcherService, UiPath.Studio.Plugin.Workflow.Shared.Services.Interfaces.ISettingsServiceWrapper, Factory, UiPath.Studio.Analytics.Contracts.ITelemetryProvider, System.Func1[UiPath.Studio.Plugin.Workflow.Shared.Interfaces.IProjectWrapper], UiPath.Studio.Plugin.Workflow.Shared.Excel.IExcelService)' on type 'ToolboxControlViewModel'. ---> RemoteException wrapping System.Windows.Markup.XamlParseException: Initialization of 'System.Windows.Media.Imaging.BitmapImage' threw an exception. ---> RemoteException wrapping System.InvalidOperationException: Property 'UriSource' or property 'StreamSource' must be set. at System.Windows.Media.Imaging.BitmapImage.EndInit() at MS.Internal.Xaml.Runtime.ClrObjectRuntime.InitializationGuard(XamlType xamlType, Object obj, Boolean begin) --- 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 UiPath.Studio.Plugin.Workflow.Services.ActivityIconFinder.GetIconFromResource(String resourceName, ResourceDictionary resourceDictionary) at UiPath.Studio.Plugin.Workflow.Services.ActivityIconFinder.<>c__DisplayClass9_0.<GetIcons>b__2(ResourceDictionary resource) at UiPath.Studio.Shared.ObjectExtensions.TryGet[T,R](T target, Func2 getter)
at UiPath.Studio.Plugin.Workflow.Services.ActivityIconFinder.d__9.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate)
at UiPath.Studio.Plugin.Workflow.Services.ActivityIconFinder.FindActivityIcon(Type activityType)
at UiPath.Studio.Plugin.Workflow.Services.ActivityLoaderService.<>c__DisplayClass23_0.b__0()
at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue()
at System.Lazy1.get_Value() at UiPath.Studio.Plugin.Workflow.Toolbox.ToolboxControlViewModel.UpdateRecents() at UiPath.Studio.Plugin.Workflow.Toolbox.ToolboxControlViewModel.UpdateTree() at UiPath.Studio.Plugin.Workflow.Toolbox.ToolboxControlViewModel.Update() at UiPath.Studio.Plugin.Workflow.Toolbox.ToolboxControlViewModel..ctor(IActivityLoaderService activityService, IToolboxWindowService toolboxWindowService, IFavoriteActivitiesService favoriteActivitiesService, IRecentActivitiesService recentActivitiesService, ISimpleMessageBoxService messageBoxService, ICommandFactory commandFactory, IDispatcherService dispatcherService, ISettingsServiceWrapper expressionEditorResizeService, Factory activityViewModelFactory, ITelemetryProvider telemetryProvider, Func1 projectService, IExcelService excelService)
at lambda_method(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.DelegateMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) 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.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action1 next)
at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt)
at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.ScopeSelectionMiddleware.Execute(ResolveRequestContext context, Action1 next)
at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.b__1(ResolveRequestContext ctxt)
at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request) at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) at lambda_method(Closure , IToolboxWindowService ) at UiPath.Studio.Plugin.Workflow.Services.ToolboxWindowService.GetToolboxWindowInternal() at System.Windows.Threading.DispatcherOperation1.InvokeDelegateCore()
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
— 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.Shared.MVVM.Services.DispatcherService.d__131.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.CoreIpc.Server.<InvokeMethod>d__22.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.CoreIpc.Server.<HandleRequest>d__21.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.CoreIpc.Server.<>c__DisplayClass4_2.<<-ctor>b__6>d.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.CoreIpc.IOHelpers.<WithResult>d__13.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.CoreIpc.IOHelpers.<WithTimeout>d__191.MoveNext(), HResult -2146233088

Can anyone please help??

1 Like

Hey @Aishwarya_Bhargava,

Could you please try re-installing?

Thanks
Nithin

i did try that
but i am still getting the bug

1 Like

Hi @loginerror,

Could you please help on this…

Thanks
Nithin

i still need the solution
did you find any?

1 Like

Your windows version, .NET framework, UiPath version trying to install…

These details please… I will try to see what can be done

windows version : 10.0.18362.535

.NET framework:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\CDF
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.0
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0

UiPath version: 21.2.0.0

Hi @Aishwarya_Bhargava

Could you please try the latest 21.4 version, as per this guide?
How to fix your Studio installation / Licensing issues