[
  {
    "Id": "426545",
    "ThreadId": "208077",
    "Html": "<p>I am using DotNetZip with a classic ASP application and I got this error when I generated the same name zip file more than once:</p>\r\n<p>mscorlib <span style=\"font-family:Arial;font-size:x-small\">error '800700b7'</span></p>\r\n<p><span style=\"font-family:Arial;font-size:x-small\">Cannot create a file when that file already exists</span></p>\r\n<p>even though the Save method documentation says</p>\r\n<p>If necessary, this method will delete a pre-existing file before the rename.</p>\r\n<p>Here's my code:</p>\r\n<p><span style=\"color:#f3f3f3\"><span style=\"color:#000000\">Dim zip<br>Set zip = Server.CreateObject(&quot;Ionic.Zip.ZipFile&quot;)<br>zip.AddDirectory(Dir)<br>strFileName = Dir &amp; &quot;\\FileName.zip&quot;<br>zip.Name = strFileName<br>zip.Save<br>zip.Dispose</span></span></p>\r\n<p><span style=\"color:#f3f3f3\"><span style=\"color:#000000\">As you can see, I am adding a folder to the ZIP and saving it.&nbsp; I can delete the existing file before I save, but&nbsp;the documentation says it will do it for me.</span></span></p>",
    "PostedDate": "2010-04-01T09:35:43.197-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "426612",
    "ThreadId": "208077",
    "Html": "<p>Yes, there's definitely a problem there.</p>\r\n<p>At one time the documentation was consistent with the code, but at some point someone asked for the behavior&nbsp;to be changed , and then I forgot to update the doc.</p>\r\n<p>So, easy workaround:&nbsp; delete the file first.</p>\r\n<p>In the future, I'm going to expose an option to the Save method that will specifiy that existing files should be overwritten.&nbsp;</p>\r\n<p>In the meantime I should fix the doc.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-04-01T12:26:58.263-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]