This project is read-only.

error during initialize of sevenzipextractor

Feb 28, 2012 at 3:54 PM

The code is build without error and the statement in question is

SevenZipExtractor zip = new SevenZipExtractor(file_name);

The error is

Unhandled exception of type 'SevenZip.SevenZipLibraryException' occurred in SevenZipSharp.dll

Additional information: Can not load 7-zip library of internal COM error!

Message: DLL file does not exist.

I've also installed and downloaded from 7-zip.org.

Dave Ream

 

Mar 19, 2012 at 2:58 PM

Make sure you have the project set to 32 or 64 bit depending upon which version of 7-zip you have installed on your system. I had the same issue and was set to 32 bit when I had installed 64 bit version of 7-zip.

Mar 21, 2012 at 12:53 AM

I downloaded the 32-bit version of 7-zip.

I’ve set my project to generate code for x86 but still get the error.

Dave

From: reverland [email removed]
Sent: Monday, March 19, 2012 9:59 AM
To: daveream@levtechinc.com
Subject: Re: error during initialize of sevenzipextractor [sevenzipsharp:346579]

From: reverland

Make sure you have the project set to 32 or 64 bit depending upon which version of 7-zip you have installed on your system. I had the same issue and was set to 32 bit when I had installed 64 bit version of 7-zip.

Mar 21, 2012 at 3:49 AM

You will have to change your code to reference C:\Program Files (x86)

Mar 21, 2012 at 12:46 PM

I’m on XP so there’s nothing but c:\program files

From: reverland [email removed]
Sent: Tuesday, March 20, 2012 10:49 PM
To: daveream@levtechinc.com
Subject: Re: error during initialize of sevenzipextractor [sevenzipsharp:346579]

From: reverland

You will have to change your code to reference C:\Program Files (x86)