[
  {
    "Id": "693878",
    "ThreadId": "278351",
    "Html": "\r\n<p>There are a few threads around the net about this issue but none of them were able to provide me with an answer that worked. &nbsp;I'm trying to execute the following commands in VBscript:</p>\r\n<p>&nbsp;</p>\r\n<p></p>\r\n<pre>dim zip \r\nset zip = CreateObject(&quot;Ionic.Zip.ZipFile&quot;)\r\n</pre>\r\n<p></p>\r\n<p>&nbsp;</p>\r\n<p>Doing so throws the error shown above in the discussion title. &nbsp;Initially I downloaded &quot;DotNetZipLib-DevKit-v1.9.zip&quot; and copied the &quot;Ionic.Zip.Dll&quot; from the &quot;Release&quot; folder to my own folder where I used gacutil and regasm according to the instructions\r\n in the COM section of the documentation. &nbsp;That did not work so I downloaded &quot;DotNetZip-Runtime-v1.9.msi&quot; and installed it. &nbsp;The result was the same error as before. &nbsp;Since then I have tried unregistering my first attempt, uninstalling the second\r\n attempt and reinstalling the msi file again. &nbsp;Still no luck. &nbsp;One other thread said to make sure there were no spaces in the path to the DLL so I copied it from where the msi file installed it and registered it there but got the same result. &nbsp;Finally\r\n another thread said to run regasm with the &quot;/codebase&quot; flag so I tried that but still had the same problem. &nbsp;I haven't had any errors registering it, everything seems like it's fine until I try to run the code above.</p>\r\n<p>&nbsp;</p>\r\n<p>OS: Windows Server 2008 R2 Datacenter Edition</p>\r\n<p>Installed:</p>\r\n<p>.Net 4.0&nbsp;</p>\r\n<p>Windows 7 SDK</p>\r\n<p>SQL Server 2008 R2</p>\r\n<p>Notepad&#43;&#43;</p>\r\n<p>&nbsp;</p>\r\n<p>Please help. &nbsp;I'm at a loss and would really like to use your software to assist in my server's back end processes.</p>\r\n",
    "PostedDate": "2011-11-04T07:06:11.237-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "694810",
    "ThreadId": "278351",
    "Html": "<p>This problem can be due to any number of issues.&nbsp; The problem may be due to something to do with dotNetZip, something to do with .NET, or something to do with security or access.</p>\r\n<p>I'm not an expert on .NET-com objects, so I cannot provide a detailed walkthrough of how to track down and diagnose all the possible causes. But I would suggest that you consult the web for some other resources on creating .NET-based ActiveX objects, independent of DotNetZip.</p>\r\n<p>Though I can't provide a detailed, complete walkthrough, I can provide some hints. This is what I would try:</p>\r\n<ol>\r\n<li>When CreateObject fails, there's an error code that gets returned .&nbsp;&nbsp; An HRESULT.&nbsp; You can retrieve this in Javascript with the Error object captured with&nbsp; a try..catch construct (look at e.Number). In VBScript you can get the error with the Err object.&nbsp; Err.Number will give you the HRESULT. Other COM languages have other mechanisms.&nbsp; That HRESULT will give you a hint as to the cause of the error. </li>\r\n<li>Verify that you can use the DotNetZip assembly from a pure .NET program. This eliminates the COM code path and verifies that the .NET piece is functional and works properly.&nbsp; For example it will verify that the required .NET runtime is available on the machine. It will verify that the DLL is readable and not corrupted. </li>\r\n</ol>\r\n<p>&nbsp;</p>\r\n<p>Good luck.</p>",
    "PostedDate": "2011-11-07T09:25:28.387-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]