[
  {
    "Id": "511551",
    "ThreadId": "232076",
    "Html": "\r\n<p>Hello,</p>\r\n<p>I&acute;m trying to extract a file that the password is &quot;RAPHAEL&quot; (in upper case).</p>\r\n<p>When I tried to extract it return the error &quot;The Password did not match&quot;, but the password is correct.</p>\r\n<p>Is there anything I can do?</p>\r\n<p>Here is the part of code:</p>\r\n<p>&nbsp;</p>\r\n<div style=\"color:black; background-color:white\">\r\n<pre>                    <span style=\"color:blue\">string</span> passwd = <span style=\"color:#a31515\">@&quot;RAPHAEL&quot;</span>;\r\n\r\n                    ZipFile zip = <span style=\"color:blue\">new</span> ZipFile(fileWithPath);\r\n\r\n                    <span style=\"color:blue\">foreach</span> (ZipEntry a <span style=\"color:blue\">in</span> zip)\r\n                    {\r\n                       \r\n                        a.ExtractWithPassword(<span style=\"color:#a31515\">&quot;C:\\\\TESTE&quot;</span>, passwd);\r\n                    }\r\n</pre>\r\n</div>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2010-10-23T11:23:14.117-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "511588",
    "ThreadId": "232076",
    "Html": "\r\n<p>How many entries are in the zip file?&nbsp;</p>\r\n<p>Is it possible that at least one of the entries is NOT protected by a password, or has a password that is not RAPHAEL ?&nbsp; If either of those is true, then you could get the exception you described.</p>\r\n<p>In a zip file, each entry can be protected with a different password, or no password.&nbsp; That's why, when programming defensively, you should test the ZipEntry.UsesEncryption property, before calling ZipEntry.ExtractWithPassword.</p>\r\n<p>Also - how do you know the password is correct?&nbsp; Have you tried to unzip using a different tool (say, WinZip) that accepted and confirmed the password you are using?</p>\r\n<p>If these suggestions don't solve your problem, then I suggest you dump the information on the zipfile in question, using the unzip.exe command-line utility with the -i option.&nbsp; You can also read the\r\n<a href=\"http://cheeso.members.winisp.net/DotNetZipHelp/html/48df9a8a-4b26-b638-fcc9-2026b66a5add.htm\">\r\nZipFile.Info</a> property from within a program, to get the same information.</p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2010-10-23T14:45:52.09-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "511883",
    "ThreadId": "232076",
    "Html": "\r\n<p>Cheeso,</p>\r\n<p>I've made this file to test the application. There is just one file .txt and when I tried to unzip it with Winzip or Winrar, the password is correct.</p>\r\n<p>&nbsp;</p>\r\n<p>In the examples section, there is one that uses just &quot;a.Extract&quot; and sets the password at the propertie a.Password, but when I tried to use it, it showed me the following message &quot;This entry requires a password.&quot;, that is, &quot;a.Password&quot; have been ignored.</p>\r\n",
    "PostedDate": "2010-10-24T18:14:09.647-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]