The type initializer for 'CredentialManagement.Credential' threw an exception

21.4.4+Branch.master.Sha.a8b5101efe02651274064093e9c7410fedff7696

Source: Get secure credential

Message: The type initializer for ‘CredentialManagement.Credential’ threw an exception.

Exception Type: System.TypeInitializationException

RemoteException wrapping System.TypeInitializationException: The type initializer for ‘CredentialManagement.Credential’ threw an exception. —> RemoteException wrapping System.IO.FileLoadException: Could not load file or assembly ‘System.Security.Permissions, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at CredentialManagement.Credential…cctor()
— End of inner exception stack trace —
at UiPath.Credentials.Activities.GetSecureCredential.Execute(CodeActivityContext context)
at System.Activities.CodeActivity`1.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)
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at UiPath.Executor.BaseRunner.EndExecute(IAsyncResult result)
at UiPath.Executor.InProcessRunner.EndExecute(IAsyncResult result)
at UiPath.Core.Activities.ExecutorInvokeActivity.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)

did your find solution for this issue as i am facing the same issue.