[
  {
    "Id": "270423",
    "ThreadId": "78985",
    "Html": "<p>I'm running the following (very simple) code in Powershell V2 CTP3:</p>\r\n<pre>[System.Reflection.Assembly]::LoadFrom(&quot;F:\\Scripts\\zip\\bin\\Ionic.Zip.dll&quot;);\r\n\r\n$zip =  new-object Ionic.Zip.ZipFile\r\n\r\n$zip.AddFile(&quot;F:\\Scripts\\zip\\uncompressed.txt&quot;);\r\n$zip.Save(&quot;MyZipFile.zip&quot;)\r\n$zip.Dispose()</pre>\r\n<p>&nbsp;</p>\r\n<p>I'm getting the following error:</p>\r\n<p>Exception calling &quot;AddFile&quot; with &quot;1&quot; argument(s): &quot;Request for the permission of type 'System.Security.Permissions.File<br>IOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.&quot;<br>At F:\\Scripts\\zip\\1.ps1:5 char:13<br>+ $zip.AddFile &lt;&lt;&lt;&lt; (&quot;F:\\Scripts\\zip\\uncompressed.txt&quot;);<br>&nbsp;&nbsp;&nbsp; + CategoryInfo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : NotSpecified: (:) [], MethodInvocationException<br>&nbsp;&nbsp;&nbsp; + FullyQualifiedErrorId : DotNetMethodException</p>\r\n<p>I'm running the newest version of DotNetZip. I'm not sure where the permissions issue lies. I've gone so far as to give &quot;Everyone&quot; full rights to try to get it to work.</p>",
    "PostedDate": "2009-12-23T13:55:48.997-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "270586",
    "ThreadId": "78985",
    "Html": "<p>I don't know, but if I Were you I would run ProcMon from sysinternals and see which file is getting the exception, and why.</p>\r\n<p>Is there a larger stack trace? A way to get a larger stack trace? &nbsp;</p>",
    "PostedDate": "2009-12-24T06:19:22.507-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]