[
  {
    "Id": "175065",
    "ThreadId": "52132",
    "Html": "Hello,<br>\r\nI'm testing your Ionic.Zip.dll v1.7 in vs2005<br>\r\nI added it to my web app and added a reference to it. Then tested creating a zip file, which worked.<br>\r\nThen I attempted to extract the recently created zip file, and I got an error.<br>\r\n<br>\r\nThe inner exception message is: &quot;Could not read signature - no data! (position 0x0006A9E4)&quot;<br>\r\nat Ionic.Zip.SharedUtilities._ReadFourBytes(Stream s, String message) <br>\r\nat Ionic.Zip.SharedUtilities.ReadSignature(Stream s) <br>\r\nat Ionic.Zip.SharedUtilities.FindSignature(Stream stream, Int32 SignatureToFind) <br>\r\nat Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf) <br>\r\nat Ionic.Zip.ZipFile.Read(String zipFileName, TextWriter statusMessageWriter, Encoding encoding, EventHandler`1 readProgress)<br>\r\n<br>\r\nThanks for your input\r\n",
    "PostedDate": "2009-04-02T17:14:40.663-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "175070",
    "ThreadId": "52132",
    "Html": "Can you show me the code?\r\n",
    "PostedDate": "2009-04-02T17:40:29.027-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "175342",
    "ThreadId": "52132",
    "Html": "Yeah. I added compress and extract functions to a .cs file, then called those from a .js file when clicking a &quot;Compress&quot; button and an &quot;Extract&quot; button:<br>\r\n<br>\r\nJS CALL:<br>\r\n<span style=\"font-size:13px\">\r\n<p>else if (btnPrs == &quot;TST_COMPRESS&quot;)<br>\r\n{<br>\r\n    Ama.Gol.Diagram.DiagramImport.TstZipCompress();<br>\r\n}<br>\r\nelse if (btnPrs == &quot;TST_EXTRACT&quot;)<br>\r\n{<br>\r\n    Ama.Gol.Diagram.DiagramImport.TstZipExtract();<br>\r\n}<br>\r\n<br>\r\nCS f(x)s:<br>\r\n<br>\r\npublic static void TstZipCompress()<br>\r\n{<br>\r\n    using (ZipFile zip = new ZipFile())<br>\r\n   {<br>\r\n        zip.AddItem(@&quot;C:\\Windows\\Explorer.exe&quot;, @&quot;FileManager\\Explorer.exe&quot;);<br>\r\n        zip.AddItem(@&quot;C:\\Windows\\Notepad.exe&quot;,@&quot;TextManager\\Notepad.exe&quot;);<br>\r\n        zip.Comment = &quot;This zip was created at &quot; + System.DateTime.Now.ToString(&quot;G&quot;);<br>\r\n        zip.Save(@&quot;C:\\Temp\\Packed.zip&quot;);<br>\r\n    }<br>\r\n}<br>\r\n<br>\r\npublic static void TstZipExtract()<br>\r\n{<br>\r\n    using (ZipFile zip = ZipFile.Read(@&quot;C:\\Temp\\Packed.zip&quot;))<br>\r\n    {<br>\r\n         foreach (ZipEntry e in zip)<br>\r\n         {<br>\r\n                e.Extract(@&quot;C:\\Temp&quot;, true);    // overwrite == true<br>\r\n         }<br>\r\n    }<br>\r\n}<br>\r\n<br>\r\nRegards</p>\r\n<p> </p>\r\n</span>\r\n",
    "PostedDate": "2009-04-03T09:55:10.93-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "175379",
    "ThreadId": "52132",
    "Html": "The code looks fine.  Pretty basic. I would expect it to work as you want it to.<br>\r\n<br>\r\nwhat specific version of 1.7 - do you have the latest?<br>\r\nIs this reproducible? Does it happen every time?  Have you ever been able to read or extract a zip file?<br>\r\nhow does the javascript call the C#?  <br>\r\nDoes it matter what you put into the zip file? What if you added different files instead of explorer and notepad.exe?<br>\r\nDoes it happen outside the web app?  If you put the same code in a console app, does the same problem occur? \r\n",
    "PostedDate": "2009-04-03T11:03:42.443-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "175468",
    "ThreadId": "52132",
    "Html": "Version I used in my web app: v1.7 packed Wed-03-04-2009--00924.41.<br>\r\nFirst time I attempt to read/extract a zip file. Have been able to compress/extract cab files with another library that did not convince me due to deployment issues.<br>\r\nJavascript instantiated within an aspx page, when clicking a button. C# compiled into a dll in my solution.<br>\r\nI tested with .doc files too. Compression works, extraction fails.<br>\r\n<br>\r\nI also tested w/a sample exe that comes in the DotNetZip utilities and tools, for DotNetZip v1.7.  (Packed Wed-03-04-2009--00924.41.). <br>\r\nPlaced the unzip.exe and the .dll that came in that zip file, in the same c:\\temp where I successfully compressed the files.<br>\r\nFailed to extract both zips, the one with the exe files and the one with the doc files.<br>\r\n<br>\r\nSame error message:<br>\r\nC:\\Temp&gt;unzip packed.zip -o<br>\r\nexception: Ionic.Zip.ZipException: packed.zip is not a valid zip file ---&gt; Ionic.Zip.BadReadException: Could not read signature - no data!  (position 0x0006A9E4)<br>\r\n   at Ionic.Zip.SharedUtilities._ReadFourBytes(Stream s, String message)<br>\r\n   at Ionic.Zip.SharedUtilities.ReadSignature(Stream s)<br>\r\n   at Ionic.Zip.SharedUtilities.FindSignature(Stream stream, Int32 SignatureToFind)<br>\r\n   at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)<br>\r\n   at Ionic.Zip.ZipFile.Read(String zipFileName, TextWriter statusMessageWriter, Encoding encoding, EventHandler`1 readProgress)<br>\r\n   --- End of inner exception stack trace ---<br>\r\n   at Ionic.Zip.ZipFile.Read(String zipFileName, TextWriter statusMessageWriter, Encoding encoding, EventHandler`1 readProgress)<br>\r\n   at Ionic.Zip.ZipFile.Read(String zipFileName, TextWriter statusMessageWriter, Encoding encoding)<br>\r\n   at Ionic.Zip.ZipFile.Read(String zipFileName)<br>\r\n   at Ionic.Zip.Examples.UnZip.Main(String[] args)<br>\r\n<br>\r\nRegards\r\n",
    "PostedDate": "2009-04-03T14:01:50.947-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "184651",
    "ThreadId": "52132",
    "Html": "Ok, what I am seeing on this is that normal efforts to unzip a file are failing. <br>\r\nThe most likely explanation is that the zipfile is corrupted or not correct.<br>\r\nCan you show me how you created the zip file?<br>\r\nor post the zipfile somewhere? <br>\r\n",
    "PostedDate": "2009-04-28T11:56:21.983-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "184851",
    "ThreadId": "52132",
    "Html": "i have the same problem<br>\r\n<br>\r\non the production machine all goes ok, on the target machine (windows server 2008) the extraction fail (with the same .zip file).<br>\r\n<br>\r\nfound the solution! using the release compilation solve the problem!<br>\r\n<br>\r\nbefore i use debug compilation and with this not function on target machine.<br>\r\n<br>\r\nhope this help<br>\r\n",
    "PostedDate": "2009-04-29T00:37:38.01-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "185182",
    "ThreadId": "52132",
    "Html": "newToVs, the problem you reported was due to a bug in DotNetZip. <br>\r\nsee <a href=\"http://dotnetzip.codeplex.com/WorkItem/View.aspx?WorkItemId=7711\">http://dotnetzip.codeplex.com/WorkItem/View.aspx?WorkItemId=7711</a><br>\r\n<br>\r\nThe workaround is to append four (4) space characters to the end of the zipfile comment.<br>\r\nYou can also upgrade to v1.7.2.13 which will avoid the problem. <br>\r\n<br>\r\nFastlink, I am not sure what your problem was/is.  But it seems you addressed it, so I won't worry about it further.\r\n",
    "PostedDate": "2009-04-29T12:49:07.807-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "188285",
    "ThreadId": "52132",
    "Html": "<p>Thank you for taking the time to look at this. I have paused my research on file compression/extraction for now -work overload- but will dowload v1.7.2.13 when I continue with it.</p>\r\n<p>Regards</p>",
    "PostedDate": "2009-05-08T13:24:51.603-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]