Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Xceed Error: The zip end header signature could not be found in the zip file.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #20116 |

    I’m a bit baffled by this error.  The script had been working fine for a while until now.  I did not make any changes to the script, the exe & dll files were placed on the Windows 2003 server.  There it ran fine each night until last week.  What the script does is zip up the file.

    So, what could have trigger the “zip end header signature” failure?


    //License for the use of the Xceed’s components…

    Xceed.Zip.Licenser.LicenseKey = “############”; //Purchased License…

    //Initialize variables…

    string sZipFilePath = sTmpDirPath + “\\” + sZipFileName;

    Xceed.FileSystem.DiskFile oZipFile = new Xceed.FileSystem.DiskFile(sZipFilePath);

    Xceed.Zip.ZipArchive oZipArchive = new Xceed.Zip.ZipArchive(oZipFile);

    //Xceed.FileSystem.DiskFolder oSource = new Xceed.FileSystem.DiskFolder(sTmpDirPath);

    Xceed.FileSystem.DiskFile oSource = new Xceed.FileSystem.DiskFile(sTmpDirPath + “\\” + sDbFileName);

    //Set up the Xceed Zip properties…

    //Zip file configuration/setup…

    //oZipArchive.DefaultCompressionMethod = ?? ‘Sample Objects…

    //oZipArchive.DefaultCompressionLevel = ?? ‘Sample Objects…

    //oZipArchive.DefaultEncryptionMethod = ?? ‘Sample Objects…

    //oZipArchive.DefaultEncryptionStrength = ?? ‘Sample Objects…

    //oZipArchive.DefaultEncryptionPassword = ?? ‘Sample Objects…

    //oZipArchive.DefaultDecryptionPassword = ?? ‘Sample Objects…

    oZipArchive.DefaultEncryptionMethod = Xceed.Zip.EncryptionMethod.WinZipAes;

    oZipArchive.DefaultEncryptionStrength = 256;

    oZipArchive.DefaultEncryptionPassword = “#######”;

    if (oZipFile.Exists == true)




    //Add list of file(s) to zip utility…

    //This code goes through the files in the temporary account-number Directory and adds them to the zip file

    oSource.CopyTo(oZipArchive, true);


    Imported from legacy forums. Posted by Scott (had 2969 views)

    User (Old forums)
    Post count: 23064

    Potential problem is that the sTmpDirPath has changed, or the access rights have changed so that the zip file cannot be created anymore.

    If you can paste the complete stack trace, it could give us more insight into the issue.

    Imported from legacy forums. Posted by André (had 2671 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.