System.Runtime.InteropServices.COMException (0x80040228)

hi,
i got this below error…
System.Runtime.InteropServices.COMException (0x80040228): Cannot terminate the process which owns the current node. at UiPath.Core.Activities.TaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager

After this i get one more error…

System.AggregateException: One or more errors occurred. —> System.ArgumentException: Value does not fall within the expected range. at UiPath.IUiBrowser.get_node() at UiPath.Core.Browser.get_Element() at UiPath.Core.Activities.Target.<>c__DisplayClass36_0.b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() — End of inner exception stack trace — at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at UiPath.Core.Activities.Target.GetBaseElement(ActivityContext context, CancellationToken token) at UiPath.Core.Activities.Target.GetFindMethod(TargetFindCriteria criteria, CancellationToken ct, Int32 defaultTimeout) at UiPath.Core.Activities.Target.GetElementAsync(TargetFindCriteria criteria, CancellationToken ct, Nullable1 delayBefore) at UiPath.Core.Activities.CloseApplication.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken) at UiPath.Core.Activities.TaskAsyncCodeActivity.ExecuteAsyncWithResult(AsyncCodeActivityContext context, CancellationToken cancellationToken) at UiPath.Core.Activities.TaskAsyncCodeActivity1.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state) at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation) —> (Inner Exception #0) System.ArgumentException: Value does not fall within the expected range. at UiPath.IUiBrowser.get_node() at UiPath.Core.Browser.get_Element() at UiPath.Core.Activities.Target.<>c__DisplayClass36_0.b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute()<—
why this happens? And how can i solve it?
image

@arijit1213

Can you share more details? like when are you facing this issue

Thanks