[
  {
    "Id": "897309",
    "ThreadId": "390811",
    "Html": "\r\n<p>This should be simple - I'm adding a file, but when I call ZipFile.Checkzip, it gives me a &quot;The given key was not present in the dictionary&quot; exception. Any ideas?</p>\r\n<p></p>\r\n<div style=\"color:black; background-color:white\">\r\n<pre>            <span style=\"color:blue\">using</span> (ZipFile zip = ZipFile.Read(<span style=\"color:#a31515\">&quot;MyFile.zip&quot;</span>))\r\n            {\r\n                ZipEntry f = zip.AddFile(file, <span style=\"color:#a31515\">&quot;Install&quot;</span>);\r\n                f.FileName = <span style=\"color:#a31515\">&quot;Install\\\\license.license&quot;</span>;\r\n                zip.Save();\r\n            }\r\n\r\n            <span style=\"color:blue\">bool</span> isOk = ZipFile.CheckZip(<span style=\"color:#a31515\">&quot;MyFile.zip&quot;</span>);\r\n\r\n\r\n</pre>\r\n</div>\r\n<p></p>\r\n",
    "PostedDate": "2012-08-08T16:22:45.833-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "897773",
    "ThreadId": "390811",
    "Html": "<p>I found a solution. I extract the zip file to a temp folder, add my license file in the appropriate directory, the zip everything back up. It works, but I don't see anything wrong with the original code.</p>",
    "PostedDate": "2012-08-09T13:41:50.12-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]