Using 2.0, attempting to read a file from a zip file generated with winzip 9.0 fails. I can enumerate the files contained within but when I call OpenRead on a resulting AbstractFile, I get a Xceed.Zip.InvalidZipStructureException’ exception in xceed.filesystem.dll with the message “The information contained in the local header does not match the information of the central header.” Is this a known problem? Is it fixed in 2.1? There is nothing fancy going on, no encryption, etc.
Imported from legacy forums. Posted by sweixel (had 2253 views)
That’s strange. It should be compatible. This error indicates an inconsistency between the information stored in the central header (main directory of all files) and the local header (preceeding every file’s compressed data).
With Xceed Zip for .NET, the way to bypass this error (and other per file errors) is to handle the FileSystemEvents’ ItemException event, check if e.Exception is the exception you wish to ignore (in your case, it’s an InvalidZipStructureException) and set e.Action to ItemExceptionAction.Ignore.
Can you send an email to <mail>email@example.com</mail> with one of the problematic zip files? I’d really like to take a look at what is the problem!
Imported from legacy forums. Posted by Martin (had 3092 views)