[
  {
    "Id": "282932",
    "ThreadId": "82347",
    "Html": "<p>Hi,</p>\r\n<p>So I'm able to download&nbsp;a zip file to my machine, but when I try to&nbsp;extract it with the&nbsp;Windows extraction tool&nbsp;I get the following error: &quot;<em>The Compressed (zipped) Folder is invalid or corrupted</em>&quot;.&nbsp;But&nbsp;I am able to extract with WinRAR.&nbsp;It's also worth noting everytime I flush to the screen and download&nbsp;I get the following exception message&nbsp;thrown in the background (not on the page): <span style=\"font-size:x-small\">\r\n<p><span lang=EN><span style=\"font-size:x-small\">\r\n<p><span lang=EN><em>Exception of type 'System.OutOfMemoryException' was thrown.</em>&nbsp;(I can still download the file despite the background exception)</span></p>\r\n</span></span></p>\r\n</span></p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color:Blue\">Dim</span> zippedFolderPath <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">String</span> = ConfigurationManager.AppSettings(<span style=\"color:#A31515\">&quot;AccredAppDocumentLocation&quot;</span>) &amp; <span style=\"color:#A31515\">&quot;controls\\&quot;</span><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Clear()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.BufferOutput = <span style=\"color:Blue\">False</span><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color:Blue\">Dim</span> enc <span style=\"color:Blue\">As</span> Ionic.Zip.EncryptionAlgorithm = Ionic.Zip.EncryptionAlgorithm.None<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color:Blue\">Dim</span> c <span style=\"color:Blue\">As</span> System.Web.HttpContext = System.Web.HttpContext.Current<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color:Blue\">Dim</span> archiveName <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">String</span> = <span style=\"color:Blue\">String</span>.Format(<span style=\"color:#A31515\">&quot;archive-{0}.zip&quot;</span>, DateTime.Now.ToString(<span style=\"color:#A31515\">&quot;yyyy-MMM-dd-HHmmss&quot;</span>))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.ContentType = <span style=\"color:#A31515\">&quot;application/zip&quot;</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.AddHeader(<span style=\"color:#A31515\">&quot;content-disposition&quot;</span>, <span style=\"color:#A31515\">&quot;filename=&quot;</span> + archiveName)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color:Blue\">Using</span> zip <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">New</span> ZipFile()<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.Encryption = enc<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.AddDirectory(zippedFolderPath)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.Save(Response.OutputStream)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color:Blue\">End</span> <span style=\"color:Blue\">Using</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Close()</p>\r\n<p>Also, very important, I am able to get the above code to work just fine with no errors&nbsp;on my other websites on my server. For instance,&nbsp;this problem&nbsp;ONLY occurs on my Intranet website. The only difference I can gather is that the&nbsp;websites that work&nbsp;run Forms authentication where as this problem is occurs on the&nbsp;Intranet website which&nbsp;is runnig Windows authentication. Not sure if that matters.....</p>\r\n<p>Any advice?</p>\r\n<p>Thank you</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-01-28T13:06:33.893-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "283707",
    "ThreadId": "82347",
    "Html": "<p>There have been other out-of-memory errors reported.&nbsp; If you are using v1.9 of DotNetZip, make sure to get v1.9.1.2 (the latest); it fixes a problem that could lead to an out-of-memory error.</p>\r\n<p>If you are not on v1.9, then I don't know what the problem is, but it sure looks like the difference between websites is leading to a differently-constructed zip file.&nbsp;</p>\r\n<p>If I were you I would track down that out-of-memory exception first. I don't know what you mean by saying that the exception is &quot;thrown in the background.&quot;&nbsp;&nbsp;</p>\r\n<p>I would track it down by putting a try...catch in your code and stepping through it with a debugger.&nbsp;&nbsp; Only do this after moving to v1.9.1.2.</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-01-30T11:27:56.627-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]