It failed, and the exception is at public DBAccessor() : this(LeveldbPINVOKE.new_DBAccessor(), true) The type initializer for 'LevelDBWrapper.Native.LeveldbPINVOKE' threw an exception. I tried in bother 32 bit Windows and 64 bit, either is working.