Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

LibGit2Sharp type initializer exception #7

Closed
MichaelSL opened this issue Mar 3, 2014 · 5 comments
Closed

LibGit2Sharp type initializer exception #7

MichaelSL opened this issue Mar 3, 2014 · 5 comments

Comments

@MichaelSL
Copy link

When I'm creating a repository there is the error in GitService.CreateRepository:
Error, The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.

It is working on my development machine.
What I'm doing wrong?

@Aimeast
Copy link
Owner

Aimeast commented Mar 4, 2014

Currently, I'm not sure where the problem. But I guess, most likely the problems is missing the libgit2 native dll which on path \bin\NativeBinaries\{amd64,x86}\git2-{short-sha}.dll.
Please Re-install-Package libgit2sharp from NuGet. Or download fully zip package from http://git.53wb.com/download/

Please show the detailed error message or exception stack by return.

@MichaelSL
Copy link
Author

The problem is that NativeBinaries folder is not published with the project. So I had to copy it to bin folder manually

@Aimeast
Copy link
Owner

Aimeast commented Mar 4, 2014

This issue has been preparing on libgit2/libgit2sharp#425, just let waiting the implementation.

@Aimeast
Copy link
Owner

Aimeast commented Apr 28, 2014

Also see libgit2/libgit2sharp#700, may bring you a surprise

@Aimeast
Copy link
Owner

Aimeast commented Mar 10, 2016

Closed via ed04aa9

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants