I am using this code to unzip and encrypted zip file in the server.But's it's giving me an error -- Cannot read that as a ZipFile. What is wrong here?
string extractPath = servermapPath;
ZipFile zip = new ZipFile();
if (zipPath != "")
{
zip = ZipFile.Read(zipPath);
Directory.CreateDirectory(extractPath);
foreach (ZipEntry e in zip)
{
//e.Extract(extractPath, ExtractExistingFileAction.OverwriteSilently); //It is for Normal Zip File.
e.ExtractWithPassword(zipPath, "#####");
UnzipFileExt = e.FileName;
}
}