2019.7.0 Unable to copy to or Git init

When I try to Copy to GIT or GIT Init after folder selection it show error

The type initializer for LibGit2Sharp.Core.NativeMethods threw an exception.

image

Error: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'git2-572e4d8': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   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_repository_open_ext(git_repository*& repository, FilePath path, RepositoryOpenFlags flags, FilePath ceilingDirs)
   at LibGit2Sharp.Core.Proxy.git_repository_open_ext(String path, RepositoryOpenFlags flags, String ceilingDirs)
   at LibGit2Sharp.Repository.IsValid(String path)
   at UiPath.Studio.Plugin.Git.Wrappers.RepositoryInit.GetWorkingDirectory(String directory)
   at UiPath.Studio.Plugin.Git.GitSourceControl.IsConfigured(String path)
   at UiPath.Studio.Plugin.Git.Services.UI.CopyProjectUiService.<>c__DisplayClass13_0.<IsValidDestinationFolder>b__0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- 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.SourceControl.Shared.Services.UI.BaseCopyProjectUiService.<CopyProjectExecute>d__27.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.Studio.Shared.MVVM.Commands.TaskCommand`3.<Execute>d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_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

I have the same problem. Can anyone provide a solution for this problem?

Hi @Lukas_Macas @sahaa

Welcome to our UiPath Forum! :slight_smile:

Could you give your Studio a fresh install before we can continue to debug the issue?

I found an old bug (fixed) that resulted in this error message in this situation. It should not be happening, and thus my first suggestion would be to make sure your installation is not corrupted in any way.

If this doesn’t help, we’ll debug further :slight_smile:

3 Likes

Thanks @loginerror with fresh install everything works

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.