While trying to clone an empty Git repository, error "The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception" is thrown.
Issue Description:
While trying to clone an empty Git repository, getting the error "The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception".
Root Cause:
This error is thrown when a dependency Dlls for the Github integration is missing.
Resolution:
- Open “Run” and enter in “appwiz.cpl”.
- Click OK. This will open Add/Remove programs.
- Search for “Redistributable”
- Go to the following link to see our system requirements depending on the studio/robot version: Studio Software Requirements
- It might be required to change the version of UiPath, if the instances being investigated is not the latest version.
- Check to see what version of Microsoft Visual C++ 2015 Redistributable is required for the specific studio version.
- Microsoft redistributable can be downloaded and installed from the Microsoft repository link Latest supported Visual C++ Redistributable downloads | Microsoft Learn.
- If any other software prerequisite components are missing, make sure to install them.
- If all software components are installed, open a ticket with UiPath Support so that additional troubleshooting can be done.