[
  {
    "Id": "210049",
    "ThreadId": "61881",
    "Html": "<p>I'm on a 64-bit OS, designing an SSIS package. I got the latest DotNetZip DevKit and unzipped it.</p>\r\n<p>Created a new package with a Script Task and added reference to Ionic.Zip. Intellisense worked perfectly fine and I wrote code to Zip a file. I was able to compile this successfully.</p>\r\n<p>However I'm getting this error when I run the package. Need help to resolve the following error:</p>\r\n<p>&nbsp;</p>\r\n<div id=\"_mcePaste\" style=\"left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden\">SSIS package &quot;Package2 (1).dtsx&quot; starting.</div>\r\n<div id=\"_mcePaste\" style=\"left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden\">Error: 0x1 at Script Task: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.IO.FileNotFoundException: Could not load file or assembly 'Ionic.Zip, Version=1.8.4.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c' or one of its dependencies. The system cannot find the file specified.</div>\r\n<div id=\"_mcePaste\" style=\"left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden\">File name: 'Ionic.Zip, Version=1.8.4.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c'</div>\r\n<div id=\"_mcePaste\" style=\"left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden\">&nbsp;&nbsp; at ST_2d69cc45ee9144388f402c7fe5ec7e69.csproj.ScriptMain.Main()</div>\r\n<p>\r\n<p>SSIS package &quot;Package2 (1).dtsx&quot; starting.</p>\r\n<p>Error: 0x1 at Script Task: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.IO.FileNotFoundException: Could not load file or assembly 'Ionic.Zip, Version=1.8.4.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c' or one of its dependencies. The system cannot find the file specified.</p>\r\n<p>File name: 'Ionic.Zip, Version=1.8.4.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c'</p>\r\n<p>&nbsp;&nbsp; at ST_2d69cc45ee9144388f402c7fe5ec7e69.csproj.ScriptMain.Main()</p>\r\n</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-07-08T09:59:43.007-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "210096",
    "ThreadId": "61881",
    "Html": "<p>This seems like an SSIS question, not a DotNetZip question.&nbsp; Your package is not able to resolve the referenced assembly (DotNetZip).&nbsp; I don't know SSIS, so I cannot help you.&nbsp; But I'm sure someone out there can suggest where or how you&nbsp;&nbsp;need to deploy a third-party DLL in order to be loaded by SSIS.&nbsp; You might think about putting it into the GAC.&nbsp;</p>",
    "PostedDate": "2009-07-08T11:05:35.227-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "471064",
    "ThreadId": "61881",
    "Html": "<p>try copying the dll</p>\r\n<p>to C:\\Program Files\\Microsoft SQL Server\\100\\DTS\\Binn</p>",
    "PostedDate": "2010-07-22T08:05:08.827-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "651829",
    "ThreadId": "61881",
    "Html": "<p>i'm having exactly the same problem. How did you resolve it?</p>\r\n<p>i tried copying the dll to DTS folder, and didn't work.</p>\r\n<p>thanks in advance</p>",
    "PostedDate": "2011-08-03T08:59:44.69-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "651961",
    "ThreadId": "61881",
    "Html": "<p>Did you try putting it into the GAC?&nbsp; (Do you know what that means? )&nbsp;</p>\r\n<p>did you try putting it into the SQL Server binn directory as suggested by GCodePlex ?</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-08-03T12:53:38.557-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "652198",
    "ThreadId": "61881",
    "Html": "<p>Yes, I tried the two options, GAC and DTS folder, as suggested by GCodePlex, and didn't work. Also I copied the DLL into SQL bin folders, but with the same result.</p>\r\n<p>The problem seems to be relationated with the SQL Agent, because with the DTS tool it works fine.</p>",
    "PostedDate": "2011-08-04T00:43:50.157-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "652315",
    "ThreadId": "61881",
    "Html": "<p>I am baffled that it still fails with an assembly load error, even with the Ionic.Zip.dll assembly installed into the GAC.</p>\r\n<p>From what I understand about .NET, that would be impossible.&nbsp; Are you sure you are getting that error?&nbsp; Post the exact error message that you see.</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-08-04T05:22:36.447-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "652375",
    "ThreadId": "61881",
    "Html": "<p>Ok, this is the error that appears on the event viewer (sorry, but it's in spanish):</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;Utilidad de ejecuci&oacute;n de paquetes de Microsoft (R) SQL Server &nbsp;Version 10.0.4000.0 for 64-bit &nbsp;Copyright (C) Microsoft Corp 1984-2005. Reservados todos los derechos. &nbsp; &nbsp;Iniciado: 14:05:55 &nbsp;Error: 2011-08-04 14:05:57.23 &nbsp; &nbsp; C&oacute;digo: 0x00000001 &nbsp; &nbsp; Origen: Descomprimir ficheros ZIP &nbsp; &nbsp; &nbsp;Descripci&oacute;n: System.Reflection.TargetInvocationException: Se produjo una excepci&oacute;n en el destino de la invocaci&oacute;n. ---&gt; System.IO.FileNotFoundException: No se puede cargar el archivo o ensamblado 'Ionic.Zip, Version=1.9.1.6, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado. &nbsp;Nombre de archivo: 'Ionic.Zip, Version=1.9.1.6, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c' &nbsp; &nbsp; en ST_172dc6a5acdf46758456785b590b4348.csproj.ScriptMain.Main() &nbsp; &nbsp;AVS: El registro del enlace de ensamblado est&aacute; desactivado. &nbsp;Para habilitar el registro de errores del enlace de ensamblado, establezca el valor de Registro [HKLM\\Software\\Microsoft\\Fusion!EnableLog] (DWORD) como 1. &nbsp;Nota: existe una disminuci&oacute;n del rendimiento asociada registro de errores del enlace de ensamblado. &nbsp;Para desactivar esta caracter&iacute;stica, elimine el valor de Registro [HKLM\\Software\\Microsoft\\Fusion!EnableLog]. &nbsp; &nbsp; &nbsp; --- Fin del seguimiento de la pila de la excepci&oacute;n interna --- &nbsp; &nbsp; en System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct&amp; sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) &nbsp; &nbsp; en System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) &nbsp; &nbsp; en System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) &nbsp; &nbsp; en System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) &nbsp; &nbsp; en Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript() &nbsp;Fin de error &nbsp;DTExec: la ejecuci&oacute;n del paquete devolvi&oacute; DTSER_FAILURE (1). &nbsp;Iniciado: 14:05:55 &nbsp;Finalizado: 14:05:57 &nbsp;Transcurrido: &nbsp;1.373 segundos. &nbsp;Error de ejecuci&oacute;n del paquete. &nbsp;No se pudo realizar el paso.</p>\r\n<p>&nbsp;</p>\r\n<p><span class=\"hps\">Basically</span>&nbsp;<span class=\"hps\">shows that the</span>&nbsp;<span class=\"hps\">system can not find</span>&nbsp;<span class=\"hps\">the file specified.</span></p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-08-04T06:52:14.513-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "652404",
    "ThreadId": "61881",
    "Html": "<p>yes, very clear.&nbsp; Windows cannot find the Ionic.Zip assembly.</p>\r\n<p>and have you double-verified that Ionic.Zip (v1.9.1.6) is present in the GAC?&nbsp;&nbsp; Can you post a snip of the following command:&nbsp; %WINSDK%\\bin\\gacutil -l |&nbsp;findstr Ionic&nbsp; ?&nbsp;</p>\r\n<p>(where %WINSDK% is replaced with the directory into which you have installed the Windows SDK)</p>\r\n<p>Either that, or, post a screenshot of Windows Explorer when it is open to %Windir%\\Assembly ,&nbsp; and scrolled to the Ionic.Zip assembly.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-08-04T07:23:35.227-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "652412",
    "ThreadId": "61881",
    "Html": "<p>aaaaarggghhhh!!!! Sorry, sorry, sorry, I found the error... I have a cluster with two nodes, and the library wasn't installed correctly in one of the nodes, the node that actually is the owner of the SQL instance. I reinstalled the dll with gacutil on that node, and now it works fine.</p>\r\n<p>Thanks a lot for your replies.</p>\r\n<p>thanks!</p>",
    "PostedDate": "2011-08-04T07:35:52.793-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "652636",
    "ThreadId": "61881",
    "Html": "<p>no problem.&nbsp; I figured it was a bad assumption somewhere.&nbsp; If the .NET assembly is in the GAC, as far as I know, you will never get the \"FileNotFoundException\" on that assembly.</p>",
    "PostedDate": "2011-08-04T12:56:48.407-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]