[
  {
    "Id": "554919",
    "ThreadId": "243186",
    "Html": "\r\n<p>Hi Cheeso,</p>\r\n<p>I'm using VB2010 and i created a EXE file that creates a zip file. On my PC it works fine but on all other PC no. This is error:</p>\r\n<p>**************************************</p>\r\n<p>System.IO.FileNotFoundException: Could not load file or assembly 'Ionic.Zip, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c' or one of its dependencies. The system cannot find the file specified.</p>\r\n<p>*************************************</p>\r\n<p>Now on my project I created an import for ionic.zip:</p>\r\n<p></p>\r\n<div style=\"color:black; background-color:white\">\r\n<pre><span style=\"color:blue\">Imports</span> Ionic.Zip\r\n</pre>\r\n</div>\r\n<p></p>\r\n<p>and I followed instructions reported on site how to insert DLL in my project.</p>\r\n<p>My code is simple:</p>\r\n<p></p>\r\n<div style=\"color:black; background-color:white\">\r\n<pre><span style=\"color:blue\">Using</span> zip <span style=\"color:blue\">As</span> ZipFile = <span style=\"color:blue\">New</span> ZipFile\r\n                n = 0\r\n                <span style=\"color:blue\">Do</span> <span style=\"color:blue\">Until</span> n = listaRBS.<span style=\"color:blue\">Count</span>\r\n                    zip.AddFile(watch_path &#43; <span style=\"color:#a31515\">&quot;\\script_IUB_link_&quot;</span> &#43; listaRBS(n) &#43; <span style=\"color:#a31515\">&quot;.mo&quot;</span>, <span style=\"color:#a31515\">&quot;&quot;</span>)\r\n                    n &#43;= 1\r\n                <span style=\"color:blue\">Loop</span>\r\n                <span style=\"color:green\"></span>zip.Save(watch_path &#43; <span style=\"color:#a31515\">&quot;\\script_IUB_link.zip&quot;</span>)\r\n            <span style=\"color:blue\">End</span> <span style=\"color:blue\">Using</span>\r\n</pre>\r\n</div>\r\n<p></p>\r\n<p>I also inserted library Ionic.Zip.dll in my project using 'Add references' and path(where DLL is present) is:</p>\r\n<p>D:\\Software\\DotNetZipLib-DevKit-v1.9\\DotNetZip-v1.9\\Release\\</p>\r\n<p>I believe to follow correctly all instructions but I don't understand where is mistake.</p>\r\n<p>Why does not my EXE file work on other PCs?</p>\r\n<p>I tried to find solution without success in other discussions.</p>\r\n<p>Can you help me please?</p>\r\n<p>&nbsp;</p>\r\n<p>thanks in advanced for your support</p>\r\n<p>Gio</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2011-01-25T03:08:24.517-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "558105",
    "ThreadId": "243186",
    "Html": "\r\n<p>Gio,</p>\r\n<p>Your app depends on Ionic.Zip.dll.&nbsp; When you copy your app to another PC, you must copy the EXE (yourapp.exe) as well as Ionic.Zip.dll.&nbsp; They should both be placed in the same directory.&nbsp;</p>\r\n<p>This is the way .NET applications work.&nbsp; When you add a reference to an external assembly, like DotNetZip (Ionic.Zip.dll), the app that is produced depends on that external assembly.&nbsp; At runtime that assembly must be available for the exe to load.</p>\r\n<p>There are ways to package the Ionic.Zip.dll into the EXE you produce, which would eliminate the requirement for you to copy both the EXE and the Ionic.Zip.dll to other PCs.&nbsp; But that is a somewhat advanced technique, so I'd recommend considering that\r\n only after you're certain you want to tackle it.&nbsp; For more information on that you can check the DotNetZip reference&nbsp;documentation, or the FAQ on the\r\n<a href=\"http://dotnetzip.codeplex.com\">http://dotnetzip.codeplex.com</a>&nbsp; home page, or search through the threads on the forums at\r\n<a href=\"http://dotnetzip.codeplex.com/discussions\">http://dotnetzip.codeplex.com/discussions</a> , or see the code examples&nbsp; available at\r\n<a href=\"http://dotnetzip.codeplex.com/documentation\">http://dotnetzip.codeplex.com/documentation</a>&nbsp;.</p>\r\n<p>Good luck!</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2011-01-31T07:04:56.14-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "558161",
    "ThreadId": "243186",
    "Html": "\r\n<p>hi&nbsp; Cheeso,</p>\r\n<p>thanks for your reply.</p>\r\n<p>As you said&nbsp; &quot;There are ways to package the Ionic.Zip.dll into the EXE you produce, which would eliminate the requirement for you to copy both the EXE and the Ionic.Zip.dll to other PCs.&nbsp; But that is a somewhat advanced technique, so I'd recommend\r\n considering that only after you're certain you want to tackle it.&quot;</p>\r\n<p>I need exactly of it.</p>\r\n<p>Can you provide some example or where I can look code example regarding this procedure?</p>\r\n<p>BR,</p>\r\n<p>Gio</p>\r\n",
    "PostedDate": "2011-01-31T08:37:09.963-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "558341",
    "ThreadId": "243186",
    "Html": "\r\n<p>yes, click this page:</p>\r\n<p><a href=\"http://dotnetzip.codeplex.com/wikipage?title=Examples&referringTitle=Documentation\">http://dotnetzip.codeplex.com/wikipage?title=Examples&amp;referringTitle=Documentation</a></p>\r\n<p>and select the example labelled &quot;Embedding...&quot;</p>\r\n",
    "PostedDate": "2011-01-31T14:35:15.837-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "558706",
    "ThreadId": "243186",
    "Html": "\r\n<p>Hi Cheeso,</p>\r\n<p>i solved it using ilmerge!!!</p>\r\n<p>I hope that it is useful for someone.</p>\r\n<p>this is command launched from prompt:</p>\r\n<p></p>\r\n<pre>ilmerge.exe /target:winexe /targetplatform:v4,&quot;C:\\Program Files\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.0\\Profile\\Client&quot; /out:&lt;new name file.exe&gt; file.exe Ionic.Zip.dll<br><br><br>bye<br>Gio<br></pre>\r\n<p></p>\r\n",
    "PostedDate": "2011-02-01T07:22:25.203-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "559369",
    "ThreadId": "243186",
    "Html": "\r\n<p>great, thanks for the note.</p>\r\n",
    "PostedDate": "2011-02-02T06:39:06.687-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]