Solution to the exception: Can not load 7-zip library or internal COM error! Message: failed to load library.

You need to change the target platform to x64.

Double click properties.

Click on Build Tab

Change Platform target to x64

Can not load 7-zip library or internal COM error! Message: failed to load library.