Hello
I think is better don't attach...
COde:
try
{
SevenZipCompressor.SetLibraryPath(Application.StartupPath + "/Dlls/7za.dll");
SevenZip.SevenZipCompressor szc = new SevenZip.SevenZipCompressor();
//if (File.Exists(outFile))
// szc.CompressionMode = SevenZip.CompressionMode.Append;
//else
//szc.CompressionMode = SevenZip.CompressionMode.Create;
FileStream archive1 = new FileStream(inFile, FileMode.Open);
string file = archive1.Name.Remove(0, archive1.Name.LastIndexOf('\\') + 1);
FileStream archive2 = new FileStream(outFile, FileMode.Create);
try
{
szc.DirectoryStructure = true;
szc.EncryptHeaders = true;
szc.DefaultItemName = file;
szc.CompressionLevel = CompressionLevel.Ultra;
//if the full path given the folders are also created
if (string.IsNullOrEmpty(password)) { szc.CompressStream(archive1, archive2); }
else { szc.CompressStream(archive1, archive2, password); }
}
catch (Exception)
{
throw;
// Logging.Logflatfile_Ex(e)
}
archive1.Close();
archive2.Close();
}
catch (Exception ex)
{
throw ex;
}
Error: generic of dll:
The execution has failed due to the bug in the SevenZipSharp.
Please report about it to http://sevenzipsharp.codeplex.com/WorkItem/List.aspx, post the release number and attach the archive.
Comments: ** Comment from web user: TarunJindal **
Its same as "Item number: 13642"