[
  {
    "Id": "989531",
    "ThreadId": "430249",
    "Html": "\r\n<p>I've made a http handler that create a zip file dynamically and download the zip file from stream. In my handler, zipoutputstream is created as below.</p>\r\n<p>using (ZipOutputStream output = new ZipOutputStream(context.Response.OutputStream))</p>\r\n<p>And some files are created dynamically and added into the zipoutputstream with unique entry names when each file is created.<br>\r\nThat seems to work fine, but sometimes an exception below occurs.</p>\r\n<p>&nbsp;</p>\r\n<pre>System.ArgumentException: an item with the same key has already been added.</pre>\r\n<pre>&nbsp;&nbsp; at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)</pre>\r\n<pre>&nbsp;&nbsp; at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)</pre>\r\n<pre>&nbsp;&nbsp; at Ionic.Zip.ZipOutputStream._InitiateCurrentEntry(Boolean finishing)</pre>\r\n<pre>&nbsp;&nbsp; at Ionic.Zip.ZipOutputStream._FinishCurrentEntry()</pre>\r\n<pre>&nbsp;&nbsp; at Ionic.Zip.ZipOutputStream.Dispose(Boolean disposing)</pre>\r\n<pre>&nbsp;&nbsp; at System.IO.Stream.Close()</pre>\r\n<pre>&nbsp;&nbsp; at System.IO.Stream.Dispose()</pre>\r\n<pre>   at MyProject<span>.Web.MyHttpHandler.ProcessRequest(HttpContext context)&nbsp;</span></pre>\r\n<pre><br></pre>\r\n<p>Sorry for my poor english. Please give me your help to solve this problem.</p>\r\n<p>Thank you.</p>\r\n",
    "PostedDate": "2013-01-21T00:03:43.413-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]