[
  {
    "Id": "419247",
    "ThreadId": "205254",
    "Html": "<p>hi, i'm new with this, and i have a problem with unzip a simple file. that's my code:</p>\r\n<p>&nbsp;</p>\r\n<p><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot;&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot;&gt;\r\n<p>imports</p>\r\n&lt;/font&gt;&lt;/font&gt;</span>&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot;&gt;\r\n<p>&nbsp;</p>\r\n&lt;/font&gt;</span>\r\n<p><span style=\"font-size:x-small\">Ionic.Zip</span></p>\r\n</p>\r\n<p><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">Public Class <span style=\"font-size:x-small\">Unpack</span></span></span></p>\r\n<p><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">Public shared Sub </span></span><span style=\"font-size:x-small\">ExtraeZip(</span><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">ByVal </span></span><span style=\"font-size:x-small\">nomArch </span><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">As </span></span><span style=\"font-size:x-small;color:#6f002f\"><span style=\"font-size:x-small;color:#6f002f\">String</span></span><span style=\"font-size:x-small\">, </span><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">ByVal </span></span><span style=\"font-size:x-small\">dir </span><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">As </span></span><span style=\"font-size:x-small;color:#6f002f\"><span style=\"font-size:x-small;color:#6f002f\">String</span></span><span style=\"font-size:x-small\">)</span></span></span></p>\r\n<p><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">Dim </span></span><span style=\"font-size:x-small\">ZipToUnpack </span><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">As </span></span><span style=\"font-size:x-small;color:#6f002f\"><span style=\"font-size:x-small;color:#6f002f\">String </span></span><span style=\"font-size:x-small\">= nomArch</span></span></span></p>\r\n<p><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">Dim </span></span><span style=\"font-size:x-small\">TargetDir </span><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">As </span></span><span style=\"font-size:x-small;color:#6f002f\"><span style=\"font-size:x-small;color:#6f002f\">String </span></span><span style=\"font-size:x-small\">= dir</span></span></span></p>\r\n<p>Console.WriteLine(&quot;Extracting file {0} to {1}&quot;, ZipToUnpack, TargetDir)</p>\r\n<p><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">Using </span></span><span style=\"font-size:x-small\">zip1 </span><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">As </span></span><span style=\"font-size:x-small\">ZipFile = ZipFile.Read(ZipToUnpack)</span></span></span></p>\r\n<p><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">Dim </span></span><span style=\"font-size:x-small\">e </span><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">As </span></span><span style=\"font-size:x-small\">ZipEntry</span></span></span></p>\r\n<p><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">For Each </span></span><span style=\"font-size:x-small\">e </span><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">In </span></span><span style=\"font-size:x-small\">zip1</span></span></span></p>\r\n<p style=\"padding-left:30px\">e.Extract(TargetDir,<span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">True</span></span><span style=\"font-size:x-small\">)</span></p>\r\n<p><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\"><span style=\"font-size:x-small;color:#0000ff\">Next</span></span>&nbsp;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot;&gt;&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot;&gt;\r\n<p>\r\n<p>End Using</p>\r\n<p>End Sub</p>\r\n<p>End Class</p>\r\n<p>&nbsp;</p>\r\n<p>that's sends me an error which says:</p>\r\n</p>\r\n&lt;/font&gt;&lt;/font&gt;</span>&lt;font size=&quot;2&quot; color=&quot;#0000ff&quot;&gt;\r\n<p>&nbsp;</p>\r\n&lt;/font&gt;</span></p>\r\n<p>&nbsp;</p>\r\n<p><span id=\"result_box\"><span style=\"background-color:#fff\" title=\"No se puede cargar el archivo ZipFile.cs en la ubicación c:\\dinoch\\dev\\dotnet\\zip\\DotNetZip\\Zip\">Unable to load the file in the location ZipFile.cs c: \\ dinoch \\ dev \\ dotnet \\ zip \\ DotNetZip \\ Zip ......</span></span></p>\r\n<p><span><span style=\"background-color:#fff\" title=\"No se puede cargar el archivo ZipFile.cs en la ubicación c:\\dinoch\\dev\\dotnet\\zip\\DotNetZip\\Zip\">I have to download another file than DotNetZip v1.9?</span></span></p>\r\n<p><span><span style=\"background-color:#fff\" title=\"No se puede cargar el archivo ZipFile.cs en la ubicación c:\\dinoch\\dev\\dotnet\\zip\\DotNetZip\\Zip\">thanks.</span></span></p>",
    "PostedDate": "2010-03-17T08:04:23.57-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "419338",
    "ThreadId": "205254",
    "Html": "<p>Can you show me an exception message, a stacktrace?</p>\r\n<p>I don't understand the error you're getting.&nbsp; It seems like it might be a message from your debugger, which is trying to load the source file shown in the .pdb file.&nbsp; But that is not the primary problm, I suspect.</p>\r\n<p>show me the stacktrace of the primary problem.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-03-17T10:54:07.673-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "419346",
    "ThreadId": "205254",
    "Html": "<p>hi, thanks for the reply... here is the exception message</p>\r\n<p>Ionic.Zip.ZipException: C:\\Users\\Manuel\\Desktop\\ is not a valid zip file ---&gt; Ionic.Zip.ZipException: Error opening the file ---&gt; System.IO.DirectoryNotFoundException: No se puede encontrar una parte de la ruta de acceso 'C:\\Users\\Manuel\\Desktop\\'.<br>&nbsp;&nbsp; en Ionic.Zip.ZipFile.Read en c:\\dinoch\\dev\\dotnet\\zip\\DotNetZip\\Zip Partial DLL\\ZipFile.cs:l&iacute;nea 4510<br>&nbsp;&nbsp; en Ionic.Zip.ZipFile.Read en c:\\dinoch\\dev\\dotnet\\zip\\DotNetZip\\Zip Partial DLL\\ZipFile.cs:l&iacute;nea 4458<br>&nbsp;&nbsp; en Ionic.Zip.ZipFile.Read en c:\\dinoch\\dev\\dotnet\\zip\\DotNetZip\\Zip Partial DLL\\ZipFile.cs:l&iacute;nea 4162<br>&nbsp;&nbsp; en ims_ep_packager.Unpack.ExtraeZip en C:\\Users\\Manuel\\Documents\\SharpDevelop Projects\\ims_ep_packager\\ims_ep_packager\\Unpack.vb:l&iacute;nea 17<br>&nbsp;&nbsp; en ims_ep_packager.MainForm.Button1Click en C:\\Users\\Manuel\\Documents\\SharpDevelop Projects\\ims_ep_packager\\ims_ep_packager\\MainForm.vb:l&iacute;nea 69<br>&nbsp;&nbsp; en System.Windows.Forms.Control.OnClick<br>&nbsp;&nbsp; en System.Windows.Forms.Button.OnClick<br>&nbsp;&nbsp; en System.Windows.Forms.Button.OnMouseUp<br>&nbsp;&nbsp; en System.Windows.Forms.Control.WmMouseUp<br>&nbsp;&nbsp; en System.Windows.Forms.Control.WndProc<br>&nbsp;&nbsp; en System.Windows.Forms.ButtonBase.WndProc<br>&nbsp;&nbsp; en System.Windows.Forms.Button.WndProc<br>&nbsp;&nbsp; en ControlNativeWindow.OnMessage<br>&nbsp;&nbsp; en ControlNativeWindow.WndProc<br>&nbsp;&nbsp; en System.Windows.Forms.NativeWindow.DebuggableCallback<br>&nbsp;&nbsp; en ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop<br>&nbsp;&nbsp; en ThreadContext.RunMessageLoopInner<br>&nbsp;&nbsp; en ThreadContext.RunMessageLoop<br>&nbsp;&nbsp; en System.Windows.Forms.Application.Run<br>&nbsp;&nbsp; en Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun<br>&nbsp;&nbsp; en Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel<br>&nbsp;&nbsp; en Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run<br>&nbsp;&nbsp; en ims_ep_packager.My.MyApplication.Main en 17d14f5c-a337-4978-8281-53493378c1071.vb:l&iacute;nea 81</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-03-17T11:11:25.95-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "419351",
    "ThreadId": "205254",
    "Html": "<p>The exception comes from line 17 of your file Unpack.vb.</p>\r\n<p>I don't know what that is, but I suspect it is this line:&nbsp; <span style=\"color:#0000ff;font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\">Using </span></span><span style=\"font-size:x-small\">zip1 </span><span style=\"color:#0000ff;font-size:x-small\"><span style=\"color:#0000ff;font-size:x-small\">As </span></span><span style=\"font-size:x-small\">ZipFile = ZipFile.Read(ZipToUnpack) </span></span></span></p>\r\n<p>The ZipToUnpack variable does not contain the name of a zip file.&nbsp; It apparently contains the value &quot;C:\\Users\\Manuel\\Desktop\\&quot;, which looks like a directory.</p>",
    "PostedDate": "2010-03-17T11:18:42.37-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "419353",
    "ThreadId": "205254",
    "Html": "<p>ok, i saw the problem, thanks...</p>",
    "PostedDate": "2010-03-17T11:21:21.97-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]