Hi @Ajisha_S_B
Do any of the two solved topics help out here?
https://forum.uipath.com/search?expanded=true&q=%22LibGit2Sharp.Core.NativeMethods%22%20status%3Asolved
Hi @Ajisha_S_B,
Could you please share more details around this issue?
Did you recently upgraded Uipath studio?
Was it working fine for you and recently you got this error out of nowhere?
Which version of studio are you on?
Regards
Sonali
i already reinstalled ,but still i face the issue
yes i upgraded but, facing same issue again and again
Error -------
Error: System.TypeInitializationException: The type initializer for ‘LibGit2Sharp.Core.NativeMethods’ threw an exception.
—> System.DllNotFoundException: Unable to load DLL ‘C:\Users\admin\AppData\Local\Programs\UiPath\Studio\git2-572e4d8.dll’ or one of its dependencies: The specified module could not be found. (0x8007007E)
at System.Runtime.InteropServices.NativeLibrary.LoadFromPath(String libraryName, Boolean throwOnError)
at System.Runtime.InteropServices.NativeLibrary.Load(String libraryPath)
at System.Runtime.Loader.AssemblyLoadContext.LoadUnmanagedDllFromPath(String unmanagedDllPath)
at UiPath.Studio.Core.Plugins.PluginLoadContext.LoadUnmanagedFromPath(String unmanagedDllPath)
at UiPath.Studio.Core.Plugins.PluginLoadContextManager.LoadUnmanagedDll(String unmanagedDllName, IPluginLoadContext callingContext)
at UiPath.Studio.Core.Plugins.PluginLoadContext.LoadUnmanagedDll(String unmanagedDllName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUnmanagedDll(String unmanagedDllName, IntPtr gchManagedAssemblyLoadContext)
at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
at LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary()
at LibGit2Sharp.Core.NativeMethods…cctor()
— End of inner exception stack trace —
at LibGit2Sharp.Core.NativeMethods.git_clone(git_repository*& repo, String origin_url, FilePath workdir_path, GitCloneOptions& opts)
at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts)
at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options)
at UiPath.Studio.Plugin.Git.Wrappers.RepositoryInit.Clone(String sourceUrl, String workdirPath, CloneOptions options)
at UiPath.Studio.Plugin.Git.Services.CloneService.<>c__DisplayClass3_0.b__0()
at UiPath.Studio.Plugin.Git.Desktop.Services.UiAuthenticationSession.Execute[T](ExecuteArgs1 args) at UiPath.Studio.Plugin.Git.Services.CloneService.CheckoutCore(String uri, String localFolder, IAuthenticationSession authenticationSession) at UiPath.Studio.Plugin.Git.Services.CloneService.<>c__DisplayClass2_0.<Checkout>b__0() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at UiPath.Studio.Plugin.Git.Services.CloneService.Checkout(String repository, String localFolder, IAuthenticationSession authenticationSession) at UiPath.Studio.Plugin.Git.Desktop.Services.CheckOutUiService.CheckOut_ExecuteInternal() at UiPath.Studio.SourceControl.Shared.Desktop.Services.BaseCheckOutUiService
1.CheckOut_Execute()
at UiPath.Studio.SourceControl.Shared.Desktop.Services.BaseCheckOutUiService1.<get_CheckOutCommand>b__11_0() at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand
3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
at System.Threading.Tasks.Task.<>c.b__140_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 -2146233036
Hi @Ajisha_S_B,
Can you please upgrade your UiPath.System.Activities package and then try?
It should work.
Infact, please try to upgrade other packages as well that are there in your process and run.
Regards
Sonali
i tried all these…but still i face same issue…
HI @Ajisha_S_B,
Can you do below:
Can you please check under Manage Packages settings window at project level, if all below options are checked along with nuget.org?
And then try again.
Alternatively, you can enable this at studio level from studio backstage view->Settings->manage sources as shown below:
Once you do this, and try to install package from Manage packages in studio, it will work.
Regards
Sonali