This project is read-only.

CF is not a valid zip file

May 14, 2009 at 1:37 PM
Edited May 17, 2009 at 11:08 AM

is there any known problem with extracting multiple files from a zip at the CF version?

i created a zip file with winzip. with 5-6 files.

when i try to extract them, i got the message above (" is not a valid zip file") as exception. i tried to create it with winrar. same problem.

when the zip file contains only 2 files - the extraction succeed.


i downloaded the latest version of the DotNetZip library - v1.7.2.20 - same problem.

my source is very simple:


<font size="2">




using (Ionic.Zip.ZipFile zip = Ionic.Zip.ZipFile.Read("\"))




what can be wrong?


, true);

May 14, 2009 at 5:14 PM

I don't know what could be wrong.  Can you open the zip file on the desktop with the Desktop version of DotNetZip?

If you like, open a workitem and post the offending zip file.

May 17, 2009 at 10:08 AM
Edited May 17, 2009 at 10:25 AM

the zip file is valid. i copied it from the device and opened it at the desktop. with winzip and one of the samples.

i also test it with the latest v1.8 version. same message.

you tested the CF on a CE/WM device/emulator and it works fine?


May 17, 2009 at 11:12 AM


as i thought - it was a BUG. but not as i thought - it was mine :)

(probably, the zip file was open or not released from the ActivSync copying machanism...)


thnx !


May 17, 2009 at 11:54 AM

Glad you resolved it...