[
  {
    "Id": "654940",
    "ThreadId": "268313",
    "Html": "\r\n<p>Hi,</p>\r\n<p>Awesome library! Got up and running in seconds - you've certainly led we customers into the &quot;<a href=\"http://blogs.msdn.com/b/brada/archive/2003/10/02/50420.aspx\">Pit of Success</a>.&quot; :)</p>\r\n<p>This may be already known, but I encountered runtime TypeInitializationException(s)&nbsp;when using types (such as ZipFile and ZipEntry) in ZipSL 1.9.1.8 from with a Silverlight application. After building and running from source, it was clear that the problem\r\n was related to the static type construction at lines such as:</p>\r\n<pre><div style=\"color:black; background-color:white\"><pre>AlternateEncoding = System.Text.Encoding.GetEncoding(<span style=\"color:#a31515\">&quot;IBM437&quot;</span>);</pre>\r\n</div>\r\n</pre>\r\n<p>Appears this encoding is not one of the <a href=\"http://msdn.microsoft.com/en-us/library/t9a3kf7c(v=vs.95).aspx\">\r\nfour supported encodings</a> in SL4. I was able to avoid the issue by altering the behavior where necessary with preprocessor directives, for example:</p>\r\n<p>&nbsp;</p>\r\n<div style=\"color:black; background-color:white\">\r\n<pre><span style=\"color:blue\">#if</span> SILVERLIGHT\r\n\tAlternateEncoding = System.Text.Encoding.GetEncoding(<span style=\"color:#a31515\">&quot;utf-8&quot;</span>);\r\n<span style=\"color:blue\">#else</span>\r\n\tAlternateEncoding = System.Text.Encoding.GetEncoding(<span style=\"color:#a31515\">&quot;IBM437&quot;</span>);\r\n<span style=\"color:blue\">#endif</span></pre>\r\n</div>\r\n<p>I was able to do this to the point where my use cases were covered; would be happy to submit a patch if I had some guidance on the most appropriate strategy for dealing with this.</p>\r\n<p>Yours,<br>\r\nDavid&nbsp;</p>\r\n",
    "PostedDate": "2011-08-08T22:21:37.857-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "655064",
    "ThreadId": "268313",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/workitem/14049\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2011-08-09T03:56:58.52-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]