[
  {
    "Id": "825074",
    "ThreadId": "352610",
    "Html": "\r\n<p>Hi.&nbsp; It's my first time using DotNetZip.&nbsp; Seems like a great tool, but I'm banging my head against the wall trying to figure this out.&nbsp; I'm trying to enable the downloading of files checked on a vb.net webpage.&nbsp; It seems to fail when\r\n I hit the line &quot;zip.Save(Response.OutputStream)&quot;.</p>\r\n<p>Here is the error message:</p>\r\n<p>Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server\r\n trace is enabled.<br>\r\nDetails: Error parsing near 'PK&#3;&#4;&#20;'.</p>\r\n<p>And here is the relevant portion of&nbsp;code I'm using to attempt this:</p>\r\n<div style=\"color:black; background-color:white\">\r\n<pre>            <span style=\"color:blue\">Dim</span> downloadFileName = <span style=\"color:#a31515\">&quot;Files.zip&quot;</span>\r\n            Response.Clear()\r\n            Response.AddHeader(<span style=\"color:#a31515\">&quot;content-disposition&quot;</span>, <span style=\"color:#a31515\">&quot;filename=&quot;</span> &amp; downloadFileName)\r\n            Response.ContentType = <span style=\"color:#a31515\">&quot;application/zip&quot;</span>\r\n\r\n            <span style=\"color:blue\">Dim</span> connStr <span style=\"color:blue\">As</span> <span style=\"color:blue\">String</span>\r\n            connStr = ConfigurationManager.ConnectionStrings(<span style=\"color:#a31515\">&quot;accessConnStr&quot;</span>).ConnectionString\r\n            <span style=\"color:blue\">Dim</span> Conn <span style=\"color:blue\">As</span> <span style=\"color:blue\">New</span> OleDbConnection(connStr)\r\n\r\n            Conn.Open()\r\n\r\n            <span style=\"color:blue\">Dim</span> cmd <span style=\"color:blue\">As</span> <span style=\"color:blue\">New</span> OleDbCommand(<span style=\"color:#a31515\">&quot;select * from filesUpload where id in(&quot;</span> &amp; strID &amp; <span style=\"color:#a31515\">&quot;)&quot;</span>, Conn)\r\n\r\n            <span style=\"color:blue\">Dim</span> rdr <span style=\"color:blue\">As</span> OleDbDataReader\r\n            rdr = cmd.ExecuteReader()\r\n\r\n            <span style=\"color:blue\">Using</span> zip <span style=\"color:blue\">As</span> <span style=\"color:blue\">New</span> ZipFile()\r\n\r\n                <span style=\"color:blue\">Dim</span> fileName = <span style=\"color:#a31515\">&quot;&quot;</span>\r\n                <span style=\"color:blue\">While</span> rdr.Read\r\n                    fileName = rdr(<span style=\"color:#a31515\">&quot;fileName&quot;</span>)\r\n                    zip.AddFile(<span style=\"color:#a31515\">&quot;c:/inetpub/wwwroot/gat/docs/&quot;</span> &amp; projID &amp; <span style=\"color:#a31515\">&quot;/&quot;</span> &amp; fileName, <span style=\"color:#a31515\">&quot;Requested Files&quot;</span>)\r\n                <span style=\"color:blue\">End</span> <span style=\"color:blue\">While</span>\r\n\t       rdr.Close()</pre>\r\n<pre>\t       Conn.Close()</pre>\r\n<pre>\t       Conn.Dispose()</pre>\r\n<pre>\r\n                zip.Save(Response.OutputStream)\r\n\r\n            <span style=\"color:blue\">End</span> <span style=\"color:blue\">Using</span>\r\n\r\n            Response.<span style=\"color:blue\">End</span>()\r\n\r\nAny ideas as to what I'm doing wrong and causing this error are greatly appreciated. Thanks.</pre>\r\n<pre>Jim</pre>\r\n</div>\r\n",
    "PostedDate": "2012-04-17T13:38:00.003-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "825232",
    "ThreadId": "352610",
    "Html": "<p>Problem solved.&nbsp; The button I used to trigger the download was within an UpdatePanel which conflicted with the output stream.&nbsp; Moved the button outside of the UpdatePanel and bingo, it worked.</p>",
    "PostedDate": "2012-04-17T20:27:44.1-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]