User (Old forums)MemberFebruary 9, 2009 at 9:59 amPost count: 23064
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…
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
Imported from legacy forums. Posted by Scott (had 2969 views)User (Old forums)MemberFebruary 10, 2009 at 4:37 pmPost 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)
- You must be logged in to reply to this topic.