[
  {
    "Id": "94211",
    "ThreadId": "28239",
    "Html": "I get this error when I try and do a <br>\r\n<br>\r\n<span style=\"font-family:courier new\">zip.Save()</span><br>\r\n<br>\r\nI am using the component in an ASP.net page.&nbsp; Everything runs fine right up until the save.<br>\r\n<br>\r\nThe code is essentially this:<br>\r\n<span style=\"font-family:courier new\">zip = New Ionic.Utils.Zip.ZipFile(Server.MapPath(&quot;Export.zip&quot;))<br>\r\nzip.AddFile(Server.MapPath(&quot;test.jpg&quot;)<br>\r\nzip.Save()<br>\r\nzip.Dispose()<br>\r\nzip = Nothing</span><br>\r\n<br>\r\nAnybody have a solution?&nbsp; if it helps, the weird filename it's trying to access in system32 changes every time the code is executed!<br>\r\n<br>\r\nCheers <br>\r\n<br>\r\n<br>\r\n<br>\r\nAndy<br>\r\n",
    "PostedDate": "2008-05-22T09:51:19.21-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "94575",
    "ThreadId": "28239",
    "Html": "<p>YES, I have a solution.</p>\r\n<p>Set the TempFileFolder property on the ZipFile, before saving.  eg<br>\r\n<span style=\"font-family:courier new\">zip = New Ionic.Utils.Zip.ZipFile(Server.MapPath(&quot;Export.zip&quot;))<br>\r\n'set this property to the name of a <span style=\"font-family:courier new\">directory </span>the ASP.NET user can write to:<br>\r\nzip.TempFileFolder = &quot;c:\\temp&quot;<br>\r\nzip.AddFile(Server.MapPath(&quot;test.jpg&quot;))<br>\r\nzip.Save()<br>\r\nzip.Dispose()<br>\r\nzip = Nothing</span></p>\r\n<p>See the doc on that property for WHY you need to set it.</p>\r\n<p> </p>\r\n",
    "PostedDate": "2008-05-24T11:50:55.597-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]