[
  {
    "Id": "1309680",
    "ThreadId": "568811",
    "Html": "I just started to use this ionic.zip.dll to create zip files which user can download.<br />\nMy problem is after click the &quot;download&quot; button, nothing happens. I set break point and checked, seems the zip file has the files added, but somehow nothing happens. I tried in firefox and ie, neither one works. <br />\nI then added a try catch block and got this error message:<br />\nMessage = Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.<br />\nThe Error occurs after Response.End(); so I have no clue what caused it. <br />\nplease see my code below:<br />\n<br />\n ZipFile zip = new ZipFile();<br />\n<pre><code>        for (int i = 0; i &lt; lbxlist.Items.Count; i++)\n        {\n            if (lbxlist.Items[i].Selected)\n            { \n                List&lt;string&gt; paths = getScannedFormPath(lbxlist.Items[i].Value, Convert.ToInt32(cbyear.SelectedValue));\n                for (int j = 0; j &lt; paths.Count; j++)\n                {\n                    string s = paths[j].ToString();\n\n                    if (!zip.ContainsEntry(paths[j].ToString()))\n                    {\n\n                        zip.AddFile(paths[j].ToString());\n                    }\n                }\n            }\n        }\n\n        Response.Clear();\n        Response.AddHeader(&quot;Content-Disposition&quot;, &quot;attachment; filename=forms.zip&quot;);\n        Response.ContentType = &quot;application/zip&quot;;\n        zip.Save(Response.OutputStream);\n        Response.End();</code></pre>\n\n",
    "PostedDate": "2014-10-01T11:48:34.51-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "1309702",
    "ThreadId": "568811",
    "Html": "I changed the Response.End() to Response.Close(); and now I do not get the error message. But the zip file is still not showing up or being downloaded. Any ideas?<br />\n",
    "PostedDate": "2014-10-01T12:33:25.58-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]