Skip to content

bit7z cannot load 7z.dll #225

Answered by rikyoz
RodrigoOrcelletPPST asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

bit7zlibrary cannot load it and throws an exception with the message "Failed to load the 7-zip library"

What is the full exception message? Usually, after the "Failed to load the 7-zip library" part, there's some more detail about what caused the exception.
You can also check the code() of the exception to see what the specific problem is.

In my experience, there are two common reasons for such loading problems: the path passed to Bit7zLibrary's constructor is incorrect, or you're trying to use a DLL built for a different architecture (e.g. a 64-bit DLL in a 32-bit program, or vice versa).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RodrigoOrcelletPPST
Comment options

@rikyoz
Comment options

Answer selected by RodrigoOrcelletPPST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants